I'm Yi 🤍
gaoyi-ai / monopoly Goto Github PK
View Code? Open in Web Editor NEW159356 SE Capstone Project
License: MIT License
159356 SE Capstone Project
License: MIT License
In recent tests, we found that when the homeowner was abnormally DISCONNECT, the game had not ended, and the players in the game would not be exited in the background. Then re-enter the room and there will be people from the previous round, regardless of whether they successfully exited (like a ghost), and then the game will enter the loading loop. Please optimize this.
The initial fund of 1500 is slightly more for two players and slightly less for two or more players. The specific changes are waiting to be discussed
Running the project with python manage.py runserver
boots it up perfectly using the channels asgi development server, however when running the project with Daphne daphne project.routing:application
, there is an error AppRegistryNotReady: Apps aren't loaded yet.
When I try to regist a new account, there's showing some error page:
Preview:
OperationalError at /monopoly/register/
no such table: monopoly_profile
I have saved the webpage.
Please fix this.
Another thing is, If I try to register an account with the same username, it said that I cannot use that name because its invalid, I guess the former account has already created even an error page showed?
OperationalError at monopoly_register.zip
exit button will trigger the scoreboard
When executing setup.sh, a virtual environment creation error occurs as follows:
Building wheel for twisted-iocpsupport (PEP 517): started
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /tmp/tmpv8s6qz76 build_wheel /tmp/tmp9l8hgcva
cwd: /tmp/pip-install-qsr4j4x_/twisted-iocpsupport
Complete output (13 lines):
running bdist_wheel
running build
running build_ext
building 'twisted_iocpsupport.iocpsupport' extension
creating build
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/twisted_iocpsupport
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Itwisted_iocpsupport -I/usr/include/pyth
on3.8 -c twisted_iocpsupport/iocpsupport.c -o build/temp.linux-x86_64-3.8/twisted_iocpsupport/iocpsupport.o
twisted_iocpsupport/iocpsupport.c:631:10: fatal error: io.h: No such file or directory
631 | #include "io.h"
| ^~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for twisted-iocpsupport
Building wheel for twisted-iocpsupport (PEP 517): finished with status 'error'
infrastructure: python: 3.8, Ubuntu 20.04.2 LTS
I create a test file which name is "HaoyuWang" and pwd is "123" (without quote),
when I tried to loggin in with Microsoft Edge 93.0.961.38 (Chromium), it showed some error page.
Brief:
DoesNotExist at /monopoly/
Profile matching query does not exist.
I have saved the page incase you need to check it out.
DoesNotExist at monopoly.zip
After the WebSocket is connected, here has trouble with RuntimeError (Error message: Single thread executor already being user, would deadlock)
[ English / 简体中文]
When a player is going to purchase or going to make a payment but his (her) cash is insufficient, the game doesn't end. Instead, it pops TypeError on browser console and the game gets freezed, the host player should end the game manually.
And after ending the game manually, the scoreboard doesn't show someone went bankrupt.
But the exit function works just fine.
[ English/ 简体中文]
当玩家要购买或付款,但他(她)的现金不足时,游戏不会结束。相反,它会在浏览器控制台上弹出TypeError并且卡住,主持游戏的玩家应该手动结束游戏。
并且手动结束游戏后,记分牌上没有显示到底是谁破产。
但退出功能正常工作。
When I was joing a game it had a long loading time and there seems some error happened.
I was able to see the loading page.
Here's the log in the attach file.
202109101051.log
I found that the hosting system adds a timed task to each button, but when the button is clicked normally within the time limit, the timed task does not end normally, but continues to run.
The game logic needs to be updated, the current game may take too long to play and no player will go bankrupt, the reason may be because the toll has been kept the same
Tolls should be set to increase as the game lasts, or as the number of buildings increases
new_players added waiting remote end update and test
Browser incompatibility,When using Firefox, the dice prompt box goes beyond the screen
Sometimes decisions made by players are not broadcast to other players in the game
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.