![]() ![]() You could probably do some micro-optimization, but (depending on what your actual application is doing) it's probably not worth it. C.C.C.ĭoes that help? (It looked like you might be alluding to this in your original question, but I wasn't sure.)īeyond this, simple loops are going to be your best friend. ![]() You don't need to check anything outside the range of "C". The real easy solution is to just check from the last move made.obviously, no prior move could have won the game, or you wouldn't be here.so you just need to check to see if there are 5 (or however many) in a row/column/diagonal around the move that was just placed.įor example, if the board looks like this, and X marks the most recent move.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |