Dan says
13 years ago
System.out.println("\"Everyday I'm shufflin'!\" - Yellow Player";-);
latest #25
Dan says
13 years ago
I have built it in for lols, better remember to remove it before I submit ;-)
Dan says
13 years ago
my artificially intelligent player isn't intelligent, it's just lucky :-)
Matt says
13 years ago
lmao
立即下載
Jake says
13 years ago
How've you implemented the diagonal checking?
Dan says
13 years ago
haven't yet
Dan says
13 years ago
it'll just be x+1,y+1 and x+2,y+2 etc as the same for the normal detect win algorithm
Dan says
13 years ago
obviously checking you don't go off the edge of the array
Dan says
13 years ago
also
Dan says
13 years ago
your version assumes standard connect4 board size of 7x6
Dan says
13 years ago
and also assumes 4 in a row to win
Dan says
13 years ago
all of the above are set in constants in ours
Dan says
13 years ago
so it works for 8x10 or 20x30 grids
Dan says
13 years ago
and can easily become Connect5 or Connect10 (or Connect2 LOL)
Matt says
13 years ago
Connect9001 plix
Dan says
13 years ago
probs run out of memory
Matt says
13 years ago
pfft scalability fail :-P
Jake says
13 years ago
well it's not hard for me to change :-P
Matt says
13 years ago
sorry?
Dan says
13 years ago
the size of RAM in your PC
Dan says
13 years ago
he's gonna shove 16gb in there
Dan says
13 years ago
and see how that goes down
Jake says
13 years ago
LOL :-P
Matt says
13 years ago
ahh, I see :-P I want to play Connect9x10^(9x10^100) please
Matt says
13 years ago
I demand you cater for my needs
Matt says
13 years ago
Oh, and I want it constant time-efficient too, or I'll vom on it.
back to top