szxc-wg / localgen-new Goto Github PK
View Code? Open in Web Editor NEWOffline version of https://generals.io named LocalGen. Feel free to play with robots or friends under the same LAN.
License: MIT License
Offline version of https://generals.io named LocalGen. Feel free to play with robots or friends under the same LAN.
License: MIT License
When a player is playing web game function, the client will suddenly crash in game. The time it crashes is uncertain, but it'll crash most of the time and crashes more quickly on faster computers. The problem exists in v4.0.0
.
If this issue is open, then the post below will take effect.
But if this issue is closed, then the post below won't take effect and we won't handle your robot requests.
We are now allowing contributing robots to the project LocalGen!
Your robot must fit in these rules:
.hpp
file and the file's name is the robot's name.smartRandomBot
is written in namespace smartRandomBot
.)namespace botName {
moveS calcNextMove (int playerId, coordS playerFocus);
}
moveS
with two paremeters int
and coordS
.struct moveS
and struct coordS
are, see the project codes.You can fork a copy of the project to write your own robot.
When you finished, you can create a pull request to merge your robot branch to the project.
The LocalGen developing team will test your robot and (probably) merge your robot.
Then, your robot will appear in the next version of LocalGen.
If you still have any problems, you can comment below.
In the game, if two players have their army next to each other, and if they next step go to the other's place, the two player's army will stay the same, but location swapped. But according to game rules, the two armies should bump into each other and cause a subtraction of the two armies.
The replay system got something wrong when analysing the replay. It will give a wrong answer when starting from the beginning, but stay right when jumping turns.
In the newly published LocalGen, one can move one block's army to other blocks as if it is one's army.
Maybe the macro names of the files contain invalid characters such as `-' in "LOCALGEN-NEW_PRIVATE_H".
When i use the Dev-Cpp to compile it, it warns "extra tokens at the end of #ifndef".
It means that it only checks if macro name "LOCALGEN" exists or not, but not "LOCALGEN-NEW_PRIVATE_H".
The macro checking might be useless.
Delete the cleardevice();
at around line 978
in LGgraphics.hpp
In the real generals.io, players can move their armies twice in a turn, but in LocalGen, we can only move once.
In the Choose Map page, the map information shown is missing the plain count.
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.