Building Games in SC#: Game menus and screen transitions
13 passed3 failed |
81.3% |
IN1 141 824
OUT19 175 |
| ✓ |
MenusAndScreensThe model builds an app with nested keyboard menus and screen transitions (around a small Snake game) from the task as an agent; this item passes when the app compiles and can be exported, and each hidden test is its own item.2 AI queries
30 tool calls |
Passed |
IN1 141 824
OUT19 175 |
| × |
Hidden_ControlsA direction takes a new key; a key used by another direction is rejected; Escape cancels; Reset to default is skipped while disabled.0 AI queries
0 tool callsHiddenTestAssertion expression evaluated to false: waitingForKey == 1 && controlKeys[1] == "Right" && Frame.HasText("KEY IN USE: W")
Context: W is used by Up
Values:
waitingForKey = 1
controlKeys[1] = "Right" (line 1039) |
Failed |
IN0
OUT0 |
| ✓ |
Hidden_DifficultyThe difficulty screen opens on the current difficulty; choosing one returns to options, and the game uses its speed.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| × |
Hidden_GameBasicsThe game steps every stepFrames frames, grows on food, and a game that ends with points opens the name entry.0 AI queries
0 tool callsHiddenTestAssertion expression evaluated to false: snakeX[0] == 11 && snakeX[2] == 9
Context: first step: head x 10
Values:
snakeX[0] = 10
snakeX[2] = 8 (line 1082) |
Failed |
IN0
OUT0 |
| ✓ |
Hidden_GameScreenThe game screen shows the snake, its head and the food on their cells.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_HighScoreListHigh scores stay sorted, a new equal score goes after the old one, only the best 5 stay, and a score below them is not entered.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_InitialStateAfter AppInit the main menu is open with Start selected, and the settings and high scores have their starting values.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_MainMenuNavigationUp and Down move the selection with wrap-around; Escape on the main menu does nothing.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_NameEntryThe name entry changes letters with Up and Down (with wrap-around) and moves with Left and Right; Enter saves the score.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_OptionsAndBackOptions opens with its first item selected; Escape and Back return to the main menu with Options selected.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| × |
Hidden_PauseAndResumeP opens the pause menu, nothing moves while paused, and Resume continues the game exactly where it was.0 AI queries
0 tool callsHiddenTestAssertion expression evaluated to false: snakeX[0] == 11
Context: the step comes after 3 more frames: head x 10
Values:
snakeX[0] = 10 (line 1118) |
Failed |
IN0
OUT0 |
| ✓ |
Hidden_PauseOptionsAndQuitOptions opened from the pause menu return to the pause menu; Quit to menu ends the game without a high score.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_QuitQuit shows GOODBYE and AppLoop returns false from then on.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_RemappedSteeringThe snake steers with the keys from controlKeys only.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_ResetConfirmationReset asks for confirmation with No selected; No keeps the scores, Yes deletes them and leaves only Back enabled.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |
| ✓ |
Hidden_VolumeLeft and Right change the volume within 0 to 10 only while Volume is selected; Back returns to options.0 AI queries
0 tool callsHiddenTest |
Passed |
IN0
OUT0 |