Log In  


Cart #10492 | 2015-05-05 | Code ▽ | Embed ▽ | No License
3

Howdy!

First game here, the most dead-simple Tic-Tac-Toe game I could make.

This is my first time writing Lua, so if anyone would like to give feedback on the code, I'd love to hear it.

3


I can't see any obviously wrong with the code, but I'm not a lua (or just programming) guru by any means... I don't even really like lua actually. :-/
I would probably use the pico-8 map instead of creating a parallel "grid" array, if I really must find something I would do differently. :)


Hey, thanks for the comment, viza!

The "grid" object (table?) is sort of "paving the cowpaths" because I intend to make it into Ultimate Tic Tac Toe and will want a "virtual" board for the big board.

I might look into doing the win condition checks via the map instead of relying on the grid object though.

Thanks for the feedback!


Yeah, the grid makes sense that way.
And no point doing things differently in the small and big boards.
But you can always make an offscreen map part the big board :)



[Please log in to post a comment]