sellmerfud / coltwi Goto Github PK
View Code? Open in Web Editor NEWA scala implementation of the FLN Bot for the GMT game: Colonial Twilight
License: MIT License
A scala implementation of the FLN Bot for the GMT game: Colonial Twilight
License: MIT License
App crashed, log looks like below. Version is coltwi-2.10. Save game attached
game1.zip
Turn 14 (#10 Moudjahidine) <<<
FLN is up (2nd eligible, 14 resources)
Command (fln or ?): fln
FLN chooses: Rally
FLN executes Rally operation: Tunisia
Decrease FLN resources by -1 to 13
Exception in thread "main" java.lang.AssertionError: assertion failed: Insufficent pieces in the available box
at scala.Predef$.assert(Predef.scala:279)
at coltwi.ColonialTwilight$.placePieces(ColonialTwilight.scala:1640)
at coltwi.Bot$.placeGuerrillas(Bot.scala:178)
at coltwi.Bot$ConsiderRally$.doRallies$1(Bot.scala:992)
at coltwi.Bot$ConsiderRally$.execute(Bot.scala:1005)
at coltwi.Bot$.evaluateNode$1(Bot.scala:1673)
at coltwi.Bot$.act(Bot.scala:1679)
at coltwi.ColonialTwilight$BotCmd$.$anonfun$action$4(ColonialTwilight.scala:2223)
at coltwi.ColonialTwilight$BotCmd$.$anonfun$action$4$adapted(ColonialTwilight.scala:2223)
at coltwi.ColonialTwilight$.resolveEventCard(ColonialTwilight.scala:2409)
at coltwi.ColonialTwilight$.mainLoop(ColonialTwilight.scala:2177)
at coltwi.ColonialTwilight$.main(ColonialTwilight.scala:1989)
at coltwi.ColonialTwilight.main(ColonialTwilight.scala)
This happens on both Linux and Windows, except with slightly different error messages.
On Linux:
Error: Unable to initialize main class coltwi.ColonialTwilight
Caused by: java.lang.NoClassDefFoundError: scala/Option
On Windows:
Exception in thread "main" java.lang.NoClassDefFoundError: scala/Option
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: scala.Option
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 7 more
When I did Status - All I saw this:
Pivotal : none
Capabilities: FLN:Napalm - Scorch the countryside, FLN:Overkill - Revenge
Momentum : Dual: Hardend Attitudes
Hardend
should be Hardened
Title says it all.
The bot does actually counts the marker as dropped (if I use 'show status' the marker is indicate to be where it should) but it doesn't prompt the player to actually move it when the base removal happens. It just indicates to move the commitment and commitment + support markers.
Thanks,
I want to do a troop lift and then assault. According to the manual, special activities such as troop lift can happen before, during or after an operation.
Government chooses: Execute Op & Special Activity
Choose Operation:
- Train
- Garrison
- Sweep
- Assault
Selection: 4There are no spaces that can be targeted by an Assault operation!
If I were allowed to do my troop lift before I could do a troop lift and move French troops where there are lots of active guerrillas, then assault them. At the moment though, this is forbidden.
Thanks,
On Windows, if you enter any name for a newly created game that ends with a space, the bot crashes.
Using v. 2.11.
Thanks,
The FLN bot has that capability, but the Assault spaces still cost only 2 resources for me.
List of capabilities:
Choose one:
----------------------------------------------------
1) Remove FLN:Napalm - Scorch the countryside
2) Remove FLN:Overkill - Revenge
3) Add Dual: Torture
4) Add FLN:Commandos - Zonal Commandos
5) Add FLN:Covert Movement - Cross Wilaya Coordination
6) Add FLN:SAS - Caution
7) Add FLN:Taleb Bomber - Effective
8) Add Gov:Commandos - Commandos de Chasse
9) Add Gov:Covert Movement - Dead Zones
10) Add Gov:Napalm - Effective
11) Add Gov:Overkill - Let God sort 'em out
12) Add Gov:SAS - Hearts & Minds
13) Add Gov:Taleb Bomber - Amateur
14) Finished
Assaults I just did (well, just one of them, to show the issue):
Government Assault operation
====================================================
spaces assaulted: OrleansVille, Philippeville, Sidi Bel Abbes
Choose one:
----------------------------------------------------
1) Select an assault space
2) Finished selecting assault spaces
3) Abort the entire Government turn
Selection: 1
Choose space to Assault: Oran
Government executes Assault operation: Oran
Decrease Government resources by -2 to 14
Move the following pieces from Oran to AVAILABLE:
1 Active guerrilla
I will Adjust my resources to compensate.
Wanted to take the free train event, and it did not show up as an option, all I saw was:
The bot only mentions the Sectors Wilaya and number only when applying the "show all" command, or at least that was the only case where I have seen those used.
Normally the sectors are only referred to with their name.
I think that it would be very helpful to be able to also see their Sector "code" alonsgide with their name, maybe even with a colored text.
This could be optional eventually.
That's my suggestion and feature request.
Secondarily, I would think that adding more newlines or extra --------------------------------- could help readability. Especially when the bot does loads of stuff, I find it easy to miss something along the way.
Thank you for the bot nevertheless,
I got the "napalm" capability, and afterwards I assaulted in Orleasnville where I had four French troops and there were two active guerrillas and a base.
"coltwi" only told me to remove the guerrillas while the base stayed there, thus compromising the game.
Is perhaps my understanding of the game and of the card incorrect?
Many thanks,
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.