carlorusso / 18xx Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tobymao/18xx
A platform for playing 18xx games online!
Home Page: https://www.18xx.games
License: Other
This project forked from tobymao/18xx
A platform for playing 18xx games online!
Home Page: https://www.18xx.games
License: Other
inside SR, if player own bandage and any corporation with any train:
inside OR, if current corporation owns bandage, and the corporation owns any train:
inside SR, OR, if bandage is already assigned to a corporation:
inside OR, if owner player owns bandage, and the corporation owns any train:
SR - Whatsup:
A corporation with a bandage assigned to a train cannot buy any new train (blocking Whatsup)
OR - Buy train:
A corporation with a bandage assigned to a train cannot buy any new train
OR - Buy train:
A train with the bandage from another player cannot be purchased
SR Whatsup / OR Buy Train:
If a rust is caused by another player, the owner of bandage can interrupt the game to choose to assign bandage to a train
Sugar not available on train with bandage
Bandage owned by player cannot be used if corporation has already 3 companies
[] could the bandage be applied to the new train If bandage owner buy a train?
TODO
Benda - come price protection (70) per cambio giocatore al volo
Benda - gestire in “cambio fase”
Benda:
Quando c’è i Rust - aggiungere la possibilità di comprare il potere e assegnarlo ad uno scoiattolo al volo
Usare il potere richiede che lo si assegni ad uno scoiattolo
Il treno con benda ha distanza 1 (ma può prendere l’acqua intorno)
Aggiungere choice per buttare la benda (e scartare il potere)
Se Benda è assegnato ad un treno, player non può comprare treni
Il potere può essere assegnato ad un treno obsolete prima che vada in pensione (ma dopo che ha girato)
18ZOO 🙂 I opened the last but one PR for 18ZOO 🙂 the last feature I miss before going to Alpha is the abilities of a company 🙂 can you help me with some suggestions?
every time before a rust the company (in a corporation) could get the opportunity to apply the ability to a single train - I was thinking about price protection in 1870? anything better?
train become a 1S (should I create a new one and change or better to handle it in other way?)
train with this ability cannot be sold (any suggestion where to check)
corporation can discard the “ability”; in that case if the train is obsolete / rust is discarded; (a choice should work here)
thanks
Ty 5:50 PM
18USA has a private that lets you turn an N train into an N+ train. i don’t know how far along 18USA impl is but that’d be similar logic.
just create a new one i think
override something in the buy trains step
choice sounds right. might have to be a blocking step
(edited)
🙏
1
Jen Freeman 6:46 PM
2, creating new ones is how 18ireland does it (they're created at initialization)
🙏
1
Matthew 9:35 PM
For 1 you can check out 18Mag because it has a convert to plus train ability
🙏
1
Steve U 9:58 PM
It's not technically an ability in 18Mag, but a power that can be bought each OR (edited)
Step http://localhost:9292/fixture/18ZOO/hs_ofmjiayq_1617902980?action=26 shows "[19:32]Player 1 declines to sell shares"
Step http://localhost:9292/fixture/18ZOO/hs_ofmjiayq_1617902980?action=27 shows "[19:32]Player 2 passes"
When player sell a share and pass the logs shows "Player 1 declines to buy shares"
Expected:
During the step http://localhost:9292/fixture/18ZOO/hs_ofmjiayq_1617902980?action=240
The only buyable trains are 4J and trains in the market
Expected:
Both 2J and 4J should be available to be bought
http://localhost:9292/fixture/18ZOO/hs_ofmjiayq_1617902980
Running the game inside the browser give the following endgame results: Player 2 (126$N), Player 1 (123$N), Player 3 (85$N) --Running it inside the automatic tests give the following results:
{"Player 1"=>123, "Player 2"=>110, "Player 3"=>81}
Check why browser and ruby give different results
Wings - to use the same logic as 1860
TODO
Si possono cambiare i colori delle company (però poi vanno ricreate)
@color = opts[:color] || :yellow
@text_color = opts[:text_color] || :black
Expected:
Moles tiles should not appear
Moles tiles cannot be updated
Green O / M / MM cannot be updated
After forced buy the company should finish the round
http://localhost:9292/fixture/18ZOO/bankrupt.player_debt?action=52
Expected:
During the step http://localhost:9292/fixture/18ZOO/hs_ofmjiayq_1617902980?action=135
Player selects "A spoonful of sugar (PE)" and assigns to the first train.
Then
Problems:
http://localhost:9292/fixture/18ZOO/bankrupt.player_debt
before: 4 / 50 / 4
after (-4 (liquidity) - 13 (cash from loan) - 13 (debt) + 2 (corporation move to right)): 0 / 22 / 0
If forced buy and not enough money, player get a debt.
Logic as 1822 / 18CZ
Expected:
TODO... add image and gist
Expected:
Corporation should earn 2$N for each share in Market
TODO
Remove the # TODO: remove the 3S long and 4S owned by current player
Update the code with the logic
http://localhost:9292/fixture/18ZOO/remove_3s_long_by_current_player?action=143
http://localhost:9292/fixture/18ZOO/remove_4s_by_current_player?action=129
TODO
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.