Build a GameCreating Chess

Appendix B — Message Map

Chess is built on messages (Custom Events): one piece of the game announces something, and the pieces that care listen. This map shows every message in the game: who sends it, who it goes to, and who hears it. A message must be spelled exactly the same where it is sent and where it is heard; this is the place to check.

Two ways to send. Trigger Custom Event goes to everyone who listens (a broadcast). Trigger Custom Event on Object goes to one Object only.

B.1 Chains to Follow

Read each line left to right: a message, the Logic (in bold) that hears it and sends the next message, and at the end the Logic that hears the last one.

  • boardLaidOut → Settings → lookChanged → Show Piece, Show Label, Show Promotion Choice, Slide Piece, Show Board Finish
  • boardLaidOut → Flip Board → boardFlipped → Slide Piece → pieceLanded → Make Computer Move → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • boardLaidOut → Flip Board → boardFlipped → Slide Piece → pieceLanded → Make Computer Move → moveMade → Start Turn
  • squareClicked → Select and Move → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • squareClicked → Select and Move → moveMade → Start Turn
  • promotionChosen → Choose Promotion → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • promotionChosen → Choose Promotion → moveMade → Start Turn
  • turnStarted → Look For Game End → gameContinues → Make Computer Move, Save The Game
  • flipPressed → Flip Board → boardFlipped → Slide Piece → pieceLanded → Make Computer Move → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • flipPressed → Flip Board → boardFlipped → Slide Piece → pieceLanded → Make Computer Move → moveMade → Start Turn
  • flipPressed → Flip Board → flipFinished → Save The Game
  • newGamePressed → New Game → choiceChanged → Show Option
  • sideChosen → New Game → choiceChanged → Show Option
  • strengthChosen → New Game → choiceChanged → Show Option
  • computerMoveChosen → Make Computer Move → slideStarted → Show Piece, Square Marks, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines
  • computerMoveChosen → Make Computer Move → pieceLanded → Make Computer Move → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • computerMoveChosen → Make Computer Move → pieceLanded → Make Computer Move → moveMade → Start Turn
  • undoPressed → Undo → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • hintPressed → Give A Hint → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • hintChosen → Give A Hint → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • hintChosen → Give A Hint → hintFound → Show Hint Message
  • threatsPressed → Show Threats → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • settingsPressed → Settings → choiceChanged → Show Option
  • strengthSettingChosen → Settings → choiceChanged → Show Option
  • boardFinishChosen → Settings → lookChanged → Show Piece, Show Label, Show Promotion Choice, Slide Piece, Show Board Finish
  • boardFinishChosen → Settings → choiceChanged → Show Option
  • pieceSetChosen → Settings → lookChanged → Show Piece, Show Label, Show Promotion Choice, Slide Piece, Show Board Finish
  • pieceSetChosen → Settings → choiceChanged → Show Option
  • load:succeeded → Continue The Game → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • load:succeeded → Continue The Game → savedGameLoaded → Settings → lookChanged → Show Piece, Show Label, Show Promotion Choice, Slide Piece, Show Board Finish
  • load:succeeded → Continue The Game → gameContinues → Make Computer Move, Save The Game
  • gameMenuPressed → Game Menu → gameMenuOpened → Move Pages → movePageChanged → Show Recorded Move, Show No Moves Note, Show Page Button
  • resignConfirmed → Resign → positionChanged → Show Piece, Square Marks, Show Move Mark, Show Promotion Choice, Slide Piece, Show Threat Mark, Show Pin Mark, Draw Threat Lines, Show Threats Button Pressed, Choose With Keys, Report Undo, Report Hint, Report Threats, Ask To Resign
  • earlierMovesPressed → Move Pages → movePageChanged → Show Recorded Move, Show No Moves Note, Show Page Button
  • laterMovesPressed → Move Pages → movePageChanged → Show Recorded Move, Show No Moves Note, Show Page Button

B.2 All Messages, in the Order the Build Adds Them

Message Sent by Goes to Heard by Chapter
boardLaidOut Lay Out The Board (on Board) everyone who listens Show Piece (on Piece); Show Label (on Rank Label, File Label); Flip Board (on Game Rules); Settings (on Game Rules) 1
positionChanged Select and Move (on Game Rules); Start Turn (on Game Rules); Choose Promotion (on Game Rules); Make Computer Move (on Game Rules); Undo (on Game Rules); Mark Hint Not Found; Give A Hint (on Game Rules); Show Threats (on Game Rules); Continue The Game (on Game Rules); Resign (on Game Rules) everyone who listens Show Piece (on Piece); Square Marks (on Square); Show Move Mark (on Move Mark); Show Promotion Choice (on Promotion Button); Slide Piece (on Moving Piece); Show Threat Mark (on Threat Mark); Show Pin Mark (on Pin Mark); Draw Threat Lines (on Game Rules); Show Threats Button Pressed (on Threats Button); Choose With Keys (on Promotion Focus); Report Undo (on Undo Button); Report Hint (on Hint Button); Report Threats (on Threats Button); Ask To Resign (on Resign Button) 2
squareClicked Report Click (on Square); Keyboard Focus (on Focus Mark) everyone who listens Select and Move (on Game Rules) 2
moveMade Select and Move (on Game Rules); Choose Promotion (on Game Rules); Make Computer Move (on Game Rules) its own Object only Start Turn (on Game Rules) 3
promotionChosen Report Choice (on Promotion Button, Cancel Promotion); Cancel With Escape (on Cancel Promotion); Choose With Keys (on Promotion Focus) everyone who listens Choose Promotion (on Game Rules) 4
turnStarted Start The Turn its own Object only Look For Game End (on Game Rules); Show Threats (on Game Rules) 5
boardFlipped Flip Board (on Game Rules) everyone who listens Show Label (on Rank Label, File Label); Place On Board (on Piece, Rank Label, File Label, Square, Move Mark, Threat Mark, Pin Mark); Slide Piece (on Moving Piece); Keyboard Focus (on Focus Mark) 6
flipPressed Report Flip (on Flip Button) everyone who listens Flip Board (on Game Rules) 6
newGamePressed Report New Game (on New Game Button) everyone who listens New Game (on Game Rules) 6
playPressed Report Play (on Play Button) everyone who listens New Game (on Game Rules) 6
sideChosen Report Side (on Side Option) everyone who listens New Game (on Game Rules) 6
strengthChosen Report Strength (on Strength Option) everyone who listens New Game (on Game Rules) 6
computerMoveChosen the Stockfish Bridge Library everyone who listens Make Computer Move (on Game Rules) 7
gameContinues Look For Game End (on Game Rules); Continue The Game (on Game Rules) its own Object only Make Computer Move (on Game Rules); Save The Game (on Game Rules) 7
pieceLanded Make Computer Move (on Game Rules); Slide Piece (on Moving Piece) its own Object only; everyone who listens Make Computer Move (on Game Rules) 7
retryPressed Report Retry (on Retry Button) everyone who listens Make Computer Move (on Game Rules) 7
slideStarted Make Computer Move (on Game Rules) everyone who listens Show Piece (on Piece); Square Marks (on Square); Slide Piece (on Moving Piece); Show Threat Mark (on Threat Mark); Show Pin Mark (on Pin Mark); Draw Threat Lines (on Game Rules) 7
undoPressed Report Undo (on Undo Button) everyone who listens Undo (on Game Rules) 7
hintChosen the Stockfish Bridge Library everyone who listens Give A Hint (on Game Rules) 8
hintFound Give A Hint (on Game Rules) everyone who listens Show Hint Message (on Hint Message) 8
hintPressed Report Hint (on Hint Button) everyone who listens Give A Hint (on Game Rules) 8
threatsPressed Report Threats (on Threats Button) everyone who listens Show Threats (on Game Rules) 9
boardFinishChosen Report Board Finish (on Board Finish Option) everyone who listens Settings (on Game Rules) 11
choiceChanged New Game (on Game Rules); Settings (on Game Rules) everyone who listens Show Option (on Option Button) 11
flipFinished Flip Board (on Game Rules) its own Object only Save The Game (on Game Rules) 11
load:failed the engine its own Object only Continue The Game (on Game Rules) 11
load:succeeded the engine its own Object only Continue The Game (on Game Rules) 11
lookChanged Settings (on Game Rules) everyone who listens Show Piece (on Piece); Show Label (on Rank Label, File Label); Show Promotion Choice (on Promotion Button); Slide Piece (on Moving Piece); Show Board Finish (on Board) 11
pieceSetChosen Report Piece Set (on Piece Set Option) everyone who listens Settings (on Game Rules) 11
savedGameLoaded Continue The Game (on Game Rules) its own Object only New Game (on Game Rules); Give A Hint (on Game Rules); Show Threats (on Game Rules); Settings (on Game Rules) 11
settingsPressed Report Settings (on Settings Button) everyone who listens Settings (on Game Rules) 11
strengthSettingChosen Report Strength Setting (on Strength Setting Option) everyone who listens Settings (on Game Rules) 11
earlierMovesPressed Report Earlier Moves (on Earlier Moves Button) everyone who listens Move Pages (on Game Rules) 12
gameMenuOpened Game Menu (on Game Rules) its own Object only Move Pages (on Game Rules) 12
gameMenuPressed Report Game Menu (on Game Menu Button) everyone who listens Game Menu (on Game Rules) 12
gameStarted New Game (on Game Rules) everyone who listens Keyboard Focus (on Focus Mark) 12
laterMovesPressed Report Later Moves (on Later Moves Button) everyone who listens Move Pages (on Game Rules) 12
movePageChanged Move Pages (on Game Rules) everyone who listens Show Recorded Move (on Move Words); Show No Moves Note (on No Moves Note); Show Page Button (on Earlier Moves Button, Later Moves Button) 12
resignConfirmed Report Resign (on Confirm Resign Button) everyone who listens Resign (on Game Rules) 12

From here on, each message has a list of its own, under the chapter that adds it. The name in quotes is the Mode that sends or hears it. An Event with only one Mode has it under its Logic Component’s name, and a Function sends “when called”.

B.3 Chapter 1: The Board and the Pieces

B.3.1 boardLaidOut

  • Sent by Lay Out The Board (on Board), in “Lay Out The Squares”, to everyone who listens.
  • Heard by Show Piece (on Piece): “Show Piece”.
  • Heard by Show Label (on Rank Label, File Label): “Write The Square”.
  • Heard by Flip Board (on Game Rules): “Show The Way Round”.
  • Heard by Settings (on Game Rules): “Show The Look”.

B.4 Chapter 2: Select and Move

B.4.1 positionChanged

  • Sent by Select and Move (on Game Rules), in “On squareClicked”, to everyone who listens.
  • Sent by Select and Move (on Game Rules), in “Clear The Selection”, to everyone who listens.
  • Sent by Start Turn (on Game Rules), in “First Turn”, to everyone who listens.
  • Sent by Choose Promotion (on Game Rules), in “Close The Choice”, to everyone who listens.
  • Sent by Make Computer Move (on Game Rules), in “Land The Move”, to everyone who listens.
  • Sent by Undo (on Game Rules), in “Take Back The Turn”, to everyone who listens.
  • Sent by Mark Hint Not Found, in “when called”, to everyone who listens.
  • Sent by Give A Hint (on Game Rules), in “Ask For A Hint”, to everyone who listens.
  • Sent by Give A Hint (on Game Rules), in “Show The Hint”, to everyone who listens.
  • Sent by Show Threats (on Game Rules), in “Turn Threats On Or Off”, to everyone who listens.
  • Sent by Continue The Game (on Game Rules), in “Continue Where It Was”, to everyone who listens.
  • Sent by Resign (on Game Rules), in “End The Game”, to everyone who listens.
  • Heard by Show Piece (on Piece): “Show Piece”.
  • Heard by Square Marks (on Square): “On positionChanged”.
  • Heard by Show Move Mark (on Move Mark): “On positionChanged”.
  • Heard by Show Promotion Choice (on Promotion Button): “Show The Kind”.
  • Heard by Slide Piece (on Moving Piece): “Hide”.
  • Heard by Show Threat Mark (on Threat Mark): “Show The Outline”.
  • Heard by Show Pin Mark (on Pin Mark): “Show The Bar”.
  • Heard by Draw Threat Lines (on Game Rules): “Draw Again Or Not”.
  • Heard by Show Threats Button Pressed (on Threats Button): “Show The Mode”.
  • Heard by Choose With Keys (on Promotion Focus): “Follow The Promotion Choice”.
  • Heard by Report Undo (on Undo Button): “Show Whether It Answers”.
  • Heard by Report Hint (on Hint Button): “Show Whether It Answers”.
  • Heard by Report Threats (on Threats Button): “Show Whether It Answers”.
  • Heard by Ask To Resign (on Resign Button): “Show Whether It Answers”.

B.4.2 squareClicked

  • Sent by Report Click (on Square), in “Mouse Pressed on Object”, to everyone who listens.
  • Sent by Keyboard Focus (on Focus Mark), in “Press The Focused Square”, to everyone who listens.
  • Heard by Select and Move (on Game Rules): “On squareClicked”.

B.5 Chapter 3: Turns and Check

B.5.1 moveMade

  • Sent by Select and Move (on Game Rules), in “On squareClicked”, to its own Object only.
  • Sent by Choose Promotion (on Game Rules), in “Close The Choice”, to its own Object only.
  • Sent by Make Computer Move (on Game Rules), in “Land The Move”, to its own Object only.
  • Heard by Start Turn (on Game Rules): “Next Turn”.

B.6 Chapter 4: Special Moves

B.6.1 promotionChosen

  • Sent by Report Choice (on Promotion Button, Cancel Promotion), in “Report The Choice”, to everyone who listens.
  • Sent by Cancel With Escape (on Cancel Promotion), in “Cancel The Choice”, to everyone who listens.
  • Sent by Choose With Keys (on Promotion Focus), in “Promote To The Piece”, to everyone who listens.
  • Heard by Choose Promotion (on Game Rules): “Close The Choice”.

B.7 Chapter 5: The End of the Game

B.7.1 turnStarted

  • Sent by Start The Turn, in “when called”, to its own Object only.
  • Heard by Look For Game End (on Game Rules): “End A Finished Game”.
  • Heard by Show Threats (on Game Rules): “Find The Threats”.

B.8 Chapter 6: New Game, Side and Flip

B.8.1 boardFlipped

  • Sent by Flip Board (on Game Rules), in “Turn The Board Over”, to everyone who listens.
  • Sent by Flip Board (on Game Rules), in “Show The Way Round”, to everyone who listens.
  • Heard by Show Label (on Rank Label, File Label): “Show On The Edge”.
  • Heard by Place On Board (on Piece, Rank Label, File Label, Square, Move Mark, Threat Mark, Pin Mark): “Move To My Square”.
  • Heard by Slide Piece (on Moving Piece): “Stay Hidden”.
  • Heard by Slide Piece (on Moving Piece): “Land At Once”.
  • Heard by Keyboard Focus (on Focus Mark): “Follow The Board”.

B.8.2 flipPressed

  • Sent by Report Flip (on Flip Button), in “Do The Job”, to everyone who listens.
  • Heard by Flip Board (on Game Rules): “Turn The Board Over”.

B.8.3 newGamePressed

  • Sent by Report New Game (on New Game Button), in “Do The Job”, to everyone who listens.
  • Heard by New Game (on Game Rules): “Open The Choice”.

B.8.4 playPressed

  • Sent by Report Play (on Play Button), in “Do The Job”, to everyone who listens.
  • Heard by New Game (on Game Rules): “Start The New Game”.

B.8.5 sideChosen

  • Sent by Report Side (on Side Option), in “Do The Job”, to everyone who listens.
  • Heard by New Game (on Game Rules): “Note The Side”.

B.8.6 strengthChosen

  • Sent by Report Strength (on Strength Option), in “Do The Job”, to everyone who listens.
  • Heard by New Game (on Game Rules): “Note The Strength”.

B.9 Chapter 7: The Computer

B.9.1 computerMoveChosen

  • Sent by the Stockfish Bridge Library (its code), to everyone who listens.
  • Heard by Make Computer Move (on Game Rules): “Make The Move”.

B.9.2 gameContinues

  • Sent by Look For Game End (on Game Rules), in “End A Finished Game”, to its own Object only.
  • Sent by Continue The Game (on Game Rules), in “Continue Where It Was”, to its own Object only.
  • Heard by Make Computer Move (on Game Rules): “Ask For A Move”.
  • Heard by Save The Game (on Game Rules): “Save The Turn”.

B.9.3 pieceLanded

  • Sent by Make Computer Move (on Game Rules), in “Make The Move”, to its own Object only.
  • Sent by Slide Piece (on Moving Piece), in “Say It Landed”, to everyone who listens.
  • Sent by Slide Piece (on Moving Piece), in “Land At Once”, to everyone who listens.
  • Heard by Make Computer Move (on Game Rules): “Land The Move”.

B.9.4 retryPressed

  • Sent by Report Retry (on Retry Button), in “Do The Job”, to everyone who listens.
  • Heard by Make Computer Move (on Game Rules): “Ask Again”.

B.9.5 slideStarted

  • Sent by Make Computer Move (on Game Rules), in “Make The Move”, to everyone who listens.
  • Heard by Show Piece (on Piece): “Hide While It Slides”.
  • Heard by Square Marks (on Square): “Hide The Highlight”.
  • Heard by Slide Piece (on Moving Piece): “Slide To The New Square”.
  • Heard by Show Threat Mark (on Threat Mark): “Hide The Outline”.
  • Heard by Show Pin Mark (on Pin Mark): “Hide The Bar”.
  • Heard by Draw Threat Lines (on Game Rules): “Stop Drawing”.

B.9.6 undoPressed

  • Sent by Report Undo (on Undo Button), in “Do The Job”, to everyone who listens.
  • Heard by Undo (on Game Rules): “Take Back The Turn”.

B.10 Chapter 8: The Hint

B.10.1 hintChosen

  • Sent by the Stockfish Bridge Library (its code), to everyone who listens.
  • Heard by Give A Hint (on Game Rules): “Show The Hint”.

B.10.2 hintFound

  • Sent by Give A Hint (on Game Rules), in “Show The Hint”, to everyone who listens.
  • Heard by Show Hint Message (on Hint Message): “Show The Hint”.

B.10.3 hintPressed

  • Sent by Report Hint (on Hint Button), in “Do The Job”, to everyone who listens.
  • Heard by Give A Hint (on Game Rules): “Ask For A Hint”.

B.11 Chapter 9: Threats

B.11.1 threatsPressed

  • Sent by Report Threats (on Threats Button), in “Do The Job”, to everyone who listens.
  • Heard by Show Threats (on Game Rules): “Turn Threats On Or Off”.

B.12 Chapter 11: Settings and Saving

B.12.1 boardFinishChosen

  • Sent by Report Board Finish (on Board Finish Option), in “Do The Job”, to everyone who listens.
  • Heard by Settings (on Game Rules): “Use The Board Finish”.

B.12.2 choiceChanged

  • Sent by New Game (on Game Rules), in “Open The Choice”, to everyone who listens.
  • Sent by New Game (on Game Rules), in “Note The Side”, to everyone who listens.
  • Sent by New Game (on Game Rules), in “Note The Strength”, to everyone who listens.
  • Sent by Settings (on Game Rules), in “Open The Settings”, to everyone who listens.
  • Sent by Settings (on Game Rules), in “Use The Strength”, to everyone who listens.
  • Sent by Settings (on Game Rules), in “Use The Board Finish”, to everyone who listens.
  • Sent by Settings (on Game Rules), in “Use The Piece Set”, to everyone who listens.
  • Heard by Show Option (on Option Button): “Mark The Choice”.

B.12.3 flipFinished

  • Sent by Flip Board (on Game Rules), in “Turn The Board Over”, to its own Object only.
  • Heard by Save The Game (on Game Rules): “Save The Way Round”.

B.12.4 load:failed

  • Sent by no Logic in the game sends it (the engine, a template, or code does).
  • Heard by Continue The Game (on Game Rules): “Save Again”.

B.12.5 load:succeeded

  • Sent by no Logic in the game sends it (the engine, a template, or code does).
  • Heard by Continue The Game (on Game Rules): “Continue Where It Was”.

B.12.6 lookChanged

  • Sent by Settings (on Game Rules), in “Show The Look”, to everyone who listens.
  • Sent by Settings (on Game Rules), in “Use The Board Finish”, to everyone who listens.
  • Sent by Settings (on Game Rules), in “Use The Piece Set”, to everyone who listens.
  • Sent by Settings (on Game Rules), in “Use The Last Look Again”, to everyone who listens.
  • Heard by Show Piece (on Piece): “Show The Piece Set”.
  • Heard by Show Label (on Rank Label, File Label): “Color For The Finish”.
  • Heard by Show Promotion Choice (on Promotion Button): “Show The Piece Set”.
  • Heard by Slide Piece (on Moving Piece): “Stay Hidden”.
  • Heard by Slide Piece (on Moving Piece): “Show The New Piece Set”.
  • Heard by Show Board Finish (on Board): “Show The Board Finish”.

B.12.7 pieceSetChosen

  • Sent by Report Piece Set (on Piece Set Option), in “Do The Job”, to everyone who listens.
  • Heard by Settings (on Game Rules): “Use The Piece Set”.

B.12.8 savedGameLoaded

  • Sent by Continue The Game (on Game Rules), in “Continue Where It Was”, to its own Object only.
  • Heard by New Game (on Game Rules): “Use The Last Strength Again”.
  • Heard by Give A Hint (on Game Rules): “Play On Without It”.
  • Heard by Show Threats (on Game Rules): “Use The Last Choice Again”.
  • Heard by Settings (on Game Rules): “Use The Last Look Again”.

B.12.9 settingsPressed

  • Sent by Report Settings (on Settings Button), in “Do The Job”, to everyone who listens.
  • Heard by Settings (on Game Rules): “Open The Settings”.

B.12.10 strengthSettingChosen

  • Sent by Report Strength Setting (on Strength Setting Option), in “Do The Job”, to everyone who listens.
  • Heard by Settings (on Game Rules): “Use The Strength”.

B.13 Chapter 12: Game Menu and Keyboard

B.13.1 earlierMovesPressed

  • Sent by Report Earlier Moves (on Earlier Moves Button), in “Do The Job”, to everyone who listens.
  • Heard by Move Pages (on Game Rules): “Show The Page Before”.

B.13.2 gameMenuOpened

  • Sent by Game Menu (on Game Rules), in “Open The Game Menu”, to its own Object only.
  • Heard by Move Pages (on Game Rules): “Show The Newest Page”.

B.13.3 gameMenuPressed

  • Sent by Report Game Menu (on Game Menu Button), in “Do The Job”, to everyone who listens.
  • Heard by Game Menu (on Game Rules): “Open The Game Menu”.

B.13.4 gameStarted

  • Sent by New Game (on Game Rules), in “Use The Last Choices”, to everyone who listens.
  • Heard by Keyboard Focus (on Focus Mark): “Start In Front Of The King”.

B.13.5 laterMovesPressed

  • Sent by Report Later Moves (on Later Moves Button), in “Do The Job”, to everyone who listens.
  • Heard by Move Pages (on Game Rules): “Show The Page After”.

B.13.6 movePageChanged

  • Sent by Move Pages (on Game Rules), in “Show The Newest Page”, to everyone who listens.
  • Sent by Move Pages (on Game Rules), in “Show The Page Before”, to everyone who listens.
  • Sent by Move Pages (on Game Rules), in “Show The Page After”, to everyone who listens.
  • Heard by Show Recorded Move (on Move Words): “Show The Move”.
  • Heard by Show No Moves Note (on No Moves Note): “Show Or Hide”.
  • Heard by Show Page Button (on Earlier Moves Button, Later Moves Button): “Show Or Hide”.

B.13.7 resignConfirmed

  • Sent by Report Resign (on Confirm Resign Button), in “Do The Job”, to everyone who listens.
  • Heard by Resign (on Game Rules): “End The Game”.

B.14 Game State Changes (Sent by the Engine)

Set Game State makes the engine send Game State Changed to everyone who listens.

  • Choose Promotion sets Playing in “Close The Choice”.
  • Look For Game End sets Game Over in “End A Finished Game”.
  • Make Computer Move sets Playing in “Land The Move”.
  • Undo sets Playing in “Take Back The Turn”.
  • Ask The Computer sets Computer’s Turn in “when called”.
  • Mark Computer Unavailable sets Computer Unavailable in “when called”.
  • Mark Hint Not Found sets Playing in “when called”.
  • Give A Hint sets Finding A Hint in “Ask For A Hint”.
  • Give A Hint sets Playing in “Show The Hint”.
  • Give A Hint sets Playing in “Play On Without It”.
  • Open Promotion Choice sets Promotion in “when called”.
  • Resign sets Game Over in “End The Game”.
  • Heard by: Show Unavailable Message, Save The Game.