You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deze versie van Fifteen is toegevoegd als "more comfy", in plaats van de A*-versie. Die laatste is afgelopen jaar echt een stap te ver gebleken.
Er wordt nu in plaats daarvan gevraagd om het genereren van een random solvable configuratie. De rest van het spel is zoals bij de "less comfy", met handmatige bediening.
De vraag is of wij de solvable property automatisch kunnen checken of dat dat praktisch onmogelijk is.
"Commonly, the game starts with all numbers in a shuffled state. Because you will be implementing the game on a computer, you might be tempted to "randomize" all numbers before placing them on the board. Unfortunately, not every configuration of numbers is solvable! Your task is to present a player with a solvable configuration, lest we spoil the fun."
Specification:
Adapt init to generate a random configuration each time the game is started. Consult the CS50 manual pages to find information on using the random and srandom functions.
Deze versie van Fifteen is toegevoegd als "more comfy", in plaats van de A*-versie. Die laatste is afgelopen jaar echt een stap te ver gebleken.
Er wordt nu in plaats daarvan gevraagd om het genereren van een random solvable configuratie. De rest van het spel is zoals bij de "less comfy", met handmatige bediening.
De vraag is of wij de solvable property automatisch kunnen checken of dat dat praktisch onmogelijk is.
cc @Jelleas
The text was updated successfully, but these errors were encountered: