1010
Check-in [f3ecf097c2]
Not logged in
Public Repositories
mwm's Repositories

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update some comments.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f3ecf097c20ef225f7d4a46b33d07e80cdcb700d
User & Date: mwm 2016-11-06 11:31:33
Context
2016-11-06
15:24
Generalize the help system before rewriting it. check-in: dc570350e4 user: mwm tags: trunk
11:31
Update some comments. check-in: f3ecf097c2 user: mwm tags: trunk
10:01
Rewrite the menu code so that the DONE state can use it, so we now get a New/Help menu when the game is over. check-in: 9f2d78daf6 user: mwm tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Tiny-1010.ino.

138
139
140
141
142
143
144
145
146

147
148
149
150
151
152
153
     byte delay;
     int8_t waiting[WAIT_LEN];	// Shapes ready to be played.
     byte x, y;	// And it's location on the board.
     byte board[BOARD_SIZE][BOARD_SIZE];
} game;

// Ephemeral values.
byte selected;	        // Current queue entry
game_state state;


// The menu
enum {HELP, RESUME, NEW};
const char *const
menu[] = {" Help ",
          "Resume",
          " New  ",







|
|
>







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
     byte delay;
     int8_t waiting[WAIT_LEN];	// Shapes ready to be played.
     byte x, y;	// And it's location on the board.
     byte board[BOARD_SIZE][BOARD_SIZE];
} game;

// Ephemeral values.
game_state state;	// Current game state
byte selected;	        // substate indicator


// The menu
enum {HELP, RESUME, NEW};
const char *const
menu[] = {" Help ",
          "Resume",
          " New  ",