Comments (2)
but the methods that are called inside "read_board_file" should be class methods for this to work, right?
from risk_calculator.
No, that's not necessary. You can just call the methods on the board
object you instantiate, as shown in the gist.
from risk_calculator.
Related Issues (20)
- Improved file handling HOT 2
- Variable naming
- Too long methods HOT 2
- Infinity HOT 1
- Use Hash with custom value for non existent keys HOT 5
- file_name should correspond to ClassName
- Initialize the instance variables HOT 2
- Be clear on what values mean HOT 1
- @origin is never used
- attr_reader/attr_accessor usage
- Issues with bin/risk_calculator.rb
- Issues with Dijkstra
- Issues with Territory HOT 2
- lib/risk_calculator.rb should exist
- Assets directory should be renamed data
- Files should be in a namespaced directory
- The code _lib/risk_calculator.rb_ should be moved int _lib/risk_calculator/application.rb_ and made modular
- Board.read_from_file might be better as Board.from_file(...)
- README is out of date
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_calculator.