X-Wing Miniatures Game Simulator

posted Monday, September 22nd 2014 at 12:02 PM by

Star Wars X-Wing Miniatures Game Simulator by Adam Konieska
Star Wars X-Wing Miniatures Game Simulator

Remember when I told you how cool the X-Wing Miniatures game was? Yeah, its pretty cool. A few friends and I are really into it, but how do you build the best squad? Well, I wrote a bit of code that's more than just a squad builder, it actually simulates the game so you can gauge the effectiveness of different builds!

So far, here's what it can do:

  • Randomly generate squads
  • Accurate movements according to game rules
  • Movement logic to predict enemy moves based on their location
  • Movement logic to plan moves that result in good firing positions or avoid being caught behind an enemy
  • Accurate collision detection and avoidance
  • Firing arc calculations
  • Targeting logic to determine the best ship to pursue
  • Combat resolution with dice rolling and canceling according to game rules
  • Support for user controlled ships

Star Wars X-Wing Miniatures Game Simulator by Adam Konieska
Two interceptors fire at Wedge!

What it doesn't do (but hopefully soon will!):

  • Game actions
  • Support for pilot and ability cards
  • Easy saving of squads for future testing
  • Iterative testing (i.e. play a scenario with the same two squads 1,000 times)
  • Asteroids
  • Caching for complex calculations that need to be done more than once per round (e.g. firing arc locations)
  • Multiplayer ability

Unfortunately, real life is catching up with me and I'm not finding as much time as I'd like to work on this. I'm hoping to get some inspiration and support to fire me up again. Also looking for game suggestions and bug reports. So, try it out, let me know what you think, and definitely shoot me a message if you're interested in helping with the project!

You can check it out in some kind of beta form here at http://www.adamkonieska.com/xwtmg/

Share This:



View (2) Comments Post a Comment
  • Replying to Adam Konieska on X-Wing Miniatures Game Simulator

  • zack
    Monday, March 2nd 2015 at 11:17 PM

    Very cool looking. Any plans to work on this some more?

    FYI I had to remove the fade div from the game log so that I could scroll the log back. On chrome OS X

    • Replying to Zack

    • Adam Konieska
      Tuesday, March 3rd 2015 at 12:13 PM

      Hey Zack, glad you liked it!

      I'd love to finish it, but life keeps getting in the way and I keep running out of time. :-( I'll definitely post updates of the progress I make.

      • Replying to AK