Log In  

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

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.

P#10493 2015-05-05 19:37 ( Edited 2015-05-09 13:38)

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. :)

P#10518 2015-05-06 18:05 ( Edited 2015-05-06 22:05)

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!

P#10519 2015-05-06 18:46 ( Edited 2015-05-06 22:46)

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 :)

P#10559 2015-05-09 09:38 ( Edited 2015-05-09 13:38)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 18:54:48 | 0.013s | Q:17