The Royal Game of Ur - Multiplayer
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
Installation for development
Using php 7.4 or 8, issue the commandcomposer 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) or php -S localhost:8000 -t public
Optional: Neato Bot
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.
Usage
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!
TODO
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
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。