Coder Social home page Coder Social logo

coltwi's Issues

App crashed with error

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)

v2.1 Short scenario, 1st Propaganda card bug

Short Scenario
Bug: on my 1st Propaganda card(#67) your script entirely skipped:

  • Support Phase
  • Redeploy Phase
  • Reset Phase

and then showed: 'Final Propaganda card' and 'Game Over: FLN wins!' - please take a look at attached screenshot.

PS. v1.5 worked fine
PPS. GREAT work and BIG THANK for your work
Screenshot from 2019-06-01 11:21:01

Version 2.13 won't run

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

Card #56 - typo

When I did Status - All I saw this:

Active Events

Pivotal : none
Capabilities: FLN:Napalm - Scorch the countryside, FLN:Overkill - Revenge
Momentum : Dual: Hardend Attitudes

Hardend should be Hardened

Bot should consider potential special activities before forbidding an assault (and other ops?)

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:

  1. Train
  2. Garrison
  3. Sweep
  4. Assault
    Selection: 4

There 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,

FLN - Napalm (Scorch the countryside) - card #35

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.

Feature request: add sectors numbers to ordinary messages, and bigger separators

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,

Napalm card might be ignored

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,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.