Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checks voor fifteen/random #73

Open
stgm opened this issue Aug 4, 2021 · 3 comments
Open

checks voor fifteen/random #73

stgm opened this issue Aug 4, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@stgm
Copy link
Contributor

stgm commented Aug 4, 2021

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

@stgm
Copy link
Contributor Author

stgm commented Aug 4, 2021

Introduction:

"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.

@Jelleas
Copy link
Collaborator

Jelleas commented Aug 4, 2021

Solvable zou doenbaar moeten zijn... A* klinkt als een goed idee daarvoor :)

@stgm
Copy link
Contributor Author

stgm commented Aug 4, 2021

Hmm ja sounds about right..

@stgm stgm added the enhancement New feature or request label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants