在写了在写了
nogo-backend's Introduction
nogo-backend's People
Forkers
weizihongnogo-backend's Issues
Accepting READY_OP in a local game is accessable and cause complex problem.
The problem is hard to describe. So I only explain how to trigger this bug here.
1.Choose multiplayer game and refuse one's request. But do not disconnect in the other side.
2.Choose singleplayer game and start game.
3.Request again in the other side.
4.Accept the request.
Although only the frontend fail after these operation, we should fix this bug in backend.
Add test cases with GTest
- Write test cases.
- Integrate into GitHub Actions.
- Display the real-time coverage rate on README, and ensure it is 100% all the time.
The executable compiled with Visual C++ behaves incorrectly
Only after putting 2 stones, the game ends.
This may relate to some fragile codes in rules
.
If the server encounters a fatal error and simply quits, then the logs are lost.
When an exception such as Player Already Exists is thrown, the server will simply exit without leaving any logs.
Memory leak in bot
White players can't give up.
White players giving up will cause logic_error(Black is not allowed to concede).
Redesign `PlayerCouple` utility
This class is now like a pile of rubbish.
We need to support finding the player
by its property, like role
or participant
.
Like:
auto player = players.get({Role::NONE, participant}); // which means finding by participant.
I think we can use std::set
or such things here, and support properties as indexes.
Add logging with glog or spdlog
A logger could be extremely useful for bug finding and error troubleshooting.
Logging from different modules, including rule, contest, and network, and with different levels, like fatal, info, and so on.
Deprecate the complicated `UiMessage`
Serialize State
to Message
instead and then send it to the front end.
Consider applying Better Enums or Magic Enum to simplify our codes with enums, such as printing their field name. Find a way to turn Role
into an enum(or such things) without drastically changing its usage.
Then consider moving these enums into a new place. These enums represent the constants in the Message
and the result of State calculation as well.
Documentation and README
A brief introduction to the project structure.
Add CI icon and coverage rate, test passing icon (#11) to README.
DO NOT FORGET MERGE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.