Gather examples for the acceptance test; use when we are about to start development of a new feature
acceptance/testdata from the output that was obtainedWe want to understand how the original 6502 code implements the "reverse board" feature.
The command sequence should be "CEQ" (C for setting up the board, E for reverse board, Q for quit)
We execute printf CEQ | make play-6502 and the output is:
Loaded 1389 bytes at $1000
Running...
---
MicroChess (c) 1996-2005 Peter Jennings, www.benlo.com
00 01 02 03 04 05 06 07
-------------------------
|BP|**| |**| |**| |**|00
-------------------------
|**| |**| |**| |**| |10
-------------------------
| |**| |**| |**| |**|20
-------------------------
|**| |**| |**| |**| |30
-------------------------
| |**| |**| |**| |**|40
-------------------------
|**| |**| |**| |**| |50
-------------------------
| |**| |**| |**| |**|60
-------------------------
|**| |**| |**| |**| |70
-------------------------
00 01 02 03 04 05 06 07
00 00 00
?
MicroChess (c) 1996-2005 Peter Jennings, www.benlo.com
00 01 02 03 04 05 06 07
-------------------------
|WR|WN|WB|WK|WQ|WB|WN|WR|00
-------------------------
|WP|WP|WP|WP|WP|WP|WP|WP|10
-------------------------
| |**| |**| |**| |**|20
-------------------------
|**| |**| |**| |**| |30
-------------------------
| |**| |**| |**| |**|40
-------------------------
|**| |**| |**| |**| |50
-------------------------
|BP|BP|BP|BP|BP|BP|BP|BP|60
-------------------------
|BR|BN|BB|BK|BQ|BB|BN|BR|70
-------------------------
00 01 02 03 04 05 06 07
CC CC CC
?
MicroChess (c) 1996-2005 Peter Jennings, www.benlo.com
00 01 02 03 04 05 06 07
-------------------------
|BR|BN|BB|BQ|BK|BB|BN|BR|00
-------------------------
|BP|BP|BP|BP|BP|BP|BP|BP|10
-------------------------
| |**| |**| |**| |**|20
-------------------------
|**| |**| |**| |**| |30
-------------------------
| |**| |**| |**| |**|40
-------------------------
|**| |**| |**| |**| |50
-------------------------
|WP|WP|WP|WP|WP|WP|WP|WP|60
-------------------------
|WR|WN|WB|WQ|WK|WB|WN|WR|70
-------------------------
00 01 02 03 04 05 06 07
EE EE EE
?
We then create the file acceptance/testdata/setup-reverse-quit.yaml with the following contents:
# Test sequence: start -> setup -> reverse -> reverse -> quit