Battle simulations are simulations in which theories of warfare can be tested and refined without the need for actual hostilities. See the Wikipedia article on Military Simulation for more information.
5
votes
2answers
259 views
Metal King: A JavaScript Game
I started to learn programming just a few days ago. And I've written code for a simple original game for practice, using some knowledge of JavaScript that I have gained so far.
Is the following code ...
13
votes
1answer
148 views
Battle Tanks game
I created a simple 2D game that i made for myself, in C++ with SDL2.0 + OpenGL + Box2D, but i'm insecure about the code and structure, because I developed the game using everything I've learned on the ...
7
votes
2answers
198 views
Small “Grid Battle” console game
This is my first attempt to make a game on my own. I just want to see if anyone has any comments. Am I doing things, at least, sort of alright? Is there a better way I could deal with the input?
...
3
votes
1answer
65 views
Battle simulator RPG
I just learned about classes today and wanted to find a way to implement them that interested me. I whipped up this little battle simulator and would like any feedback and critiques as well as any ...
5
votes
2answers
93 views
Mass Army Combat Simulator
I am currently teaching myself C++ in my spare time. I created the below "game" to simulate combat between an army of humans and an army of skeletons. Is there a simpler or better way of creating this ...
8
votes
3answers
433 views
Risk battle simulator
I've written a program to find the odds of either side winning a battle in Risk, and how many men they would have left. I've finished, but I feel that it can be improved since it doesn't function if ...
2
votes
3answers
48 views
App for a tabletop RP that generates hits and misses for weapons
I'm looking for tips on cleaning this up. I think it's legible, but it sure ain't pretty. In particular, I'd love to clean up the hitCheck function. I've dealt with ...
6
votes
4answers
477 views
Artillery game C++ practice project
I've completed a program as a learning experience to make sure I've got the concepts down. I found a practice project online and decided to try it out. The program compiles and runs exactly how it ...
13
votes
2answers
809 views
Pokémon style battle game
I haven't been learning Python for too long and I was just wondering how this Pokémon style battle looks? It's based off of this:
Turn Based Pokémon Style Game. It's my first proper time using ...
1
vote
2answers
99 views
Army strength based on level and modifiers
Right so I was doing a quick project, and sought a quick way to finish one section of my Python code. I handed it in, but I'm well aware that it's bad code, but I was wondering if there was a good way ...
8
votes
2answers
1k views
Text based fight game
I learned code about a week ago and I wanna hear some recommendations and stuff I could add to my code. This is a fight system I made for my text based game. Please tell me what I could do better.
...
4
votes
1answer
121 views
Class for modifying stats of units
I am specifically looking for input on naming ModifierCalculator and Modifiers. I would also appreciate input on whether ...
5
votes
1answer
96 views
Fight simulator
I have been learning Scala for a couple months and want to get a more concrete understanding of proper oop practice. I find it difficult to optimally use traits, abstract classes and inheritance.
...
3
votes
1answer
59 views
Action dispatch for a combat class
My problem is that I have a piece of code logic that I'm having trouble fitting into an OO approach, and I was looking for design patterns so that the following code would no longer rely on the ugly
...
16
votes
2answers
2k views
A turn based battle simulator (aka Pokémon)
I am embarking on the daunting journey of learning to program on my own two feet and have created a turn based battle simulator (think Pokémon). The idea came from here.
It's very crude and could ...
10
votes
2answers
252 views
Script for a Civil War game
I'm new to Python, and pretty much programming/scripting. I'm just looking for someone to critique my methods and tell me if there are more efficient ways to do things.
...
10
votes
4answers
345 views
Student Showdown - Q and A battle game, part 1: The Champions
Just a self challenge/fun thing.
I have a scene where the player picks a character, of course it works but I'm repeating myself an awful lot. I would appreciate any formatting suggestions and making ...
2
votes
2answers
438 views
War card game simulator
My teacher wants us to create a program that runs n games of war and calculates the average number of battles, wars and double wars that occurred. He has very specific rules (not necessarily the ...
1
vote
1answer
66 views
FPS efficiency for 'attack counter'
I have a code snippet which I wish to improve to increase my program's FPS, but as a beginner in JavaScript, I do not know how. I know the problem, which is the fact my counter mechanism used to delay ...
9
votes
1answer
168 views
Simulate Random Risk Battle
For Prof. Yorgey's 2013 Haskell course, I'm working on a homework to simulate a Risk battle.
...
20
votes
5answers
2k views
Simple battle class
I'm new to Java, and this code could likely be squashed down a whole heap. How can I make this code simpler and easier to read?
chance.base is a percentage. If it ...
10
votes
2answers
395 views
“Pure” functional simple Scala battle game simulation
I am a long time imperative programmer (mostly C++) taking my first forays into functional programming with Scala.
I am following some online tutorials about functional programming and Scala and I'm ...
11
votes
1answer
2k views
Battle a random enemy
I am trying to write a text adventure as my first Python project. For this segment, I wanted a random enemy (part of a class with its own attributes) to appear and then enter a turn based battle with ...
13
votes
2answers
942 views
Encapsulated text-based RPG using a randomized combat system
For my rags-to-riches submission, I've decided to improve this code:
Text-based RPG game using classes
However, I've decided to start off with something different. The original code is more ...
4
votes
1answer
920 views
5
votes
3answers
3k views
Battle system in C++
I am not really having any problems with this. I'm just wondering if anybody has any ideas for a path for me to look down for bettering this little FF turn-based style of game in my free time.
I ...
17
votes
4answers
1k views
Possible improvements to Risk board game?
Enter risk!
This program will roll dice for the game of Risk. The initial input is two numbers separated by a space and if the attackers wish to do a blitz they can add one more space and an "!" to ...
1
vote
2answers
119 views