Comments (2)
I created a FileManagement class for this issue. I had to modify some things in the views, models and controllers to made the call to this class.
The call is made from the controller modelRisk.setBoard(pathToUse)
Only works in Windows. If you want to try it in Linux, you would have to modify line 61 of the FileManagement class. You would have to change the separators "\" to "/".
Please try to use it and let me know if I can close the issue.
from risk-game.
There was an issue in the parsing of map files on Linux (the files still have \r\n end of line so should be parsed the same way). I fixed it. in commit ab704eb .
We can now close this issue.
from risk-game.
Related Issues (20)
- Refactor: Move fortification move handling to model
- Refactor: Remove Redundancy in initializePlayersArmies
- Refactor: armiesAssignation
- Refactor: Refactoring map file reading with exceptions HOT 1
- In view make sure the user cannot make invalid moves
- Display more information about attack move in phaseview HOT 1
- Refactor: create defend method in player HOT 1
- Make sure to save the tournament mode also HOT 1
- Refactor: MapFileManagement.createBoard
- Check current player is human before saving game HOT 1
- TODO after having merge : when loading saved game HOT 1
- BUG: in tournament mode no winning log message HOT 1
- Refactor: AttackMove.battle
- RiskModel:290 commented line
- TestAll test suite does not contain all the test classes HOT 1
- Refactor: Split MapEditorController.loadMapFromFile
- Tournament mode and saving/loading tests HOT 2
- RiskView window sometime does not have correct size HOT 2
- The RiskView slow down when the number of armies is high HOT 1
- Demonstration github: issues with code
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.
from risk-game.