Now fully playable at https://ur.whnet.ca !
This is a recreation of the 4,500 year old "Royal Game of Ur" in PHP, jQuery (Ajax) and CSS
Meant to be playable online by theorically as many people as a server can handle
- Using php 7.4 or 8, issue the command
composer install
- Copy the file
.env.example
to.env
and change the corresponding values (db) - run
php artisan migrate
- Configure the
/public
directory with your web server of choice (nginx, apache) orphp -S localhost:8000 -t public
If you want to have "Neato" bot working locally, you need to set up https://github.com/qwertyuu/go-ur (or any other API that supports the same payload/contract)
Once it is done, set the UR_NEAT_BASEURL
to the appropriate base URL. The /infer endpoint is not needed here.
First player creates a game by clicking "Nouvelle partie" and communicates its game ID to another player
Second player inputs the game ID by clicking "Rejoindre une partie" and presses "Go!"
First player hits "Refresh"
Play!
- Have a public dice that player roll with an action (click) instead of an automatic dice that is private like right now
- Fix bug where game gets stuck if only one token is left for each player on the last square and no winning dice is thrown (might be fixed by point above)
- use https://github.com/qwertyuu/go-ur to host one or many AI bots
- Make game beautiful