Coder Social home page Coder Social logo

Comments (4)

sellmerfud avatar sellmerfud commented on August 24, 2024 1

I reworked code for adjusting pieces for a selected space on the map.
You can now move pieces to/from other spaces and you can move pieces between the space and the available/casualties/out of play boxes.
When moving a base/or tunneled base you can select either type from the source and place it in a single command.
When moving a pieced that can be flipped (guerrilla, ranger, irregular) you specify the type active/undergound to be place in the destination, but you can select both active and underground pieces in the source.

This allow you to, for example, move 3 the active guerrillas in Tay Ninh to Saigon as underground guerrillas.
Or you could select an NVA Base in the Available box and move it to a space as a Tunneled base.

from fitl.

sellmerfud avatar sellmerfud commented on August 24, 2024

Bases and Tunneled Bases are represented as different entities with in the code.

So what is going on here is that there are two bases currently in Tay Ninh: A Tunneled VC Base and an Untunneled NVA Base.
The adjust code will only let you change the number of those entities. So to change the NVA Base into a Tunneled base you must first remove the NVA Bases (adjust NVA Bases to zero). Then you will see that an option for NVA Tunneled Bases will appear in the menu. You can then select it to add the Tunneled Base.

from fitl.

sellmerfud avatar sellmerfud commented on August 24, 2024

Also it bears pointing out that to add a piece to a space, the piece must be in the Available Box. This means in the case where the piece you wish to add to a space is not available it must be taken from somewhere first with a separate Adjust command. This includes if you wanted to move a piece from the Casualties Box or the Out of Play Box. The piece must first be adjusted out of that box. And the the space can be adjusted to add the new available piece.

from fitl.

richardmtl avatar richardmtl commented on August 24, 2024

Ah, understood. So the code doesn't let me adjust things willy-nilly; it hews to the space limits etc. Ok, that's clearer now. Closing!

from fitl.

Related Issues (20)

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.