diff options
| author | la-ninpre <aaoth@aaoth.xyz> | 2023-08-28 13:09:56 +0300 |
|---|---|---|
| committer | la-ninpre <aaoth@aaoth.xyz> | 2023-08-28 13:09:56 +0300 |
| commit | 3190ad25cb167f8289b7d10957a37283cd1efc2a (patch) | |
| tree | dfb3d51957cdc6425b578b5309ae464c79043251 /94c3b37d6926933cf96c409f543bdbc1ad6eb62a | |
| parent | fa168f384ba699d7b0e8a4c49925573115e0c976 (diff) | |
| download | tictactoe-3190ad25cb167f8289b7d10957a37283cd1efc2a.tar.gz tictactoe-3190ad25cb167f8289b7d10957a37283cd1efc2a.zip | |
major refactoring
- fix bug when game restarts and board doesn't get cleared
- optimize by using immediate opcodes and fallthrough subroutines
- lint with uxnlin
- format with uxnfor
- store x and y coordinates of the cursor in different bytes
(i thought this was a cool memory hack, but since the variables
are located in zero page this doesn't save memory, on the contrary,
it adds unnecessary complexity to manage packing and unpacking
coordinates from nibbles)
- remove loops from check-win
- remove nested comments
- avoid redoing some work when game restarts (restart code
now jumps to code that is necessary to only reset game state and
clear the board)
Diffstat (limited to '94c3b37d6926933cf96c409f543bdbc1ad6eb62a')
0 files changed, 0 insertions, 0 deletions
