It seems you found my personal cave on GitHub.
naberin / project.risk Goto Github PK
View Code? Open in Web Editor NEWUniversity of Houston - Software Design Project
University of Houston - Software Design Project
To fortify, we move armies from one country to another and only countries with more than 1 army can move.
Problem
If the only country that can move its armies to other territories has no neighbors and other territories only have 1 army,
the user cannot enter any other territory,
the program does not allow users to skip.
Solution
Give option to skip fortification.
Refactor/Rewrite army transfer and addition
Refactor fortifyPlayersTerritory in GameManager
Note: This is a reminder to myself. I'll refactor them myself, unless you would like to
Problem
The gameloop may exit even when it seems the players have not taken all available territories.
Where
GameManager's main, check if while(!isGameOver(bm)) works properly
To Debug faster:
Thanks to Norman we have a great structure to build the map and use going forward. I think the next steps in this regard is incorporating play functionality like player actions and placing or moving armies etc. While he does this I will work more on building a good GUI. One thing I noticed is the player initialization only includes cavalry. I think it would be worth measuring out a set of tokens that players can then spend on military units since one set of rules for risk I read measured everything out using infantry units for measuring value. That way we can come back to this functionality when players are redistributing their armies or being rewarded new armies at the beginning of a turn.
Expected
Exit the initializeTerritories loop after all territories are assigned and taken
Actual
With >2 players, the loop doesn't end
Where:
fix isAllTerritoriesInitialized in BoardManager.
So Dr. Alipour mentioned that we do not need a GUI for this.
I am still down for the entire thing, but I think I would rather do an android app.
Or
We can just keep it simple and do it without a gui.
What do you guys think?
Inside src/files/
Problem
Downloading a previous game produces an error when turning into a json: "Not an object," as file is empty
Solution
Risk.json should have the downloaded data; write data to Risk.json.
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.