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.
3
votes
2answers
61 views
Random RPG Battle System in Lua
This is my battle system that I wrote in Lua. Bear with me on this one, this is my first real program that does something besides write hello world. If there is anything that I could have done ...
3
votes
1answer
54 views
Beginner code for a text-based battle simulator
I wanted to see if anyone would like to review the existing code I have for a beginner program that simulates a battle. I have learned a heck of a lot while doing it, and I had a few questions ...
6
votes
1answer
73 views
First drafts of Ultima-like adventure code
A friend and I watched most of the thenewboston syntax videos for Python 3 and spent 2 hours attempting to piece together our first program / generic text adventure. First experience with coding.
I'...
9
votes
3answers
141 views
A Text-Based Fighter - Like Pokemon
Okay, I'm a newb to programming/Python.
To get a better understanding of objects/methods, I wrote a text-based, turn-based fighting game.
I want to expand by adding new characters with new moves (one ...
5
votes
3answers
128 views
Risk battle simulator v2
I wrote a Risk battle simulator that returned the odds of every possible outcome and put it up to be reviewed here. I used the comments to improve it, and am wondering if it can be optimized further.
...
5
votes
1answer
108 views
CIS194: Risk!-style “battles”
After reading LYAH and using RWH as a reference, I've been doing the exercises from CIS194, which is often suggested to beginners on irc://freenode.net/#haskell and ...
1
vote
2answers
159 views
Fighting game in Java
I want a better way to do the if statements, and if there is a better way to do it. How is it more efficient? Is there something like a ...
5
votes
2answers
285 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 ...
14
votes
1answer
251 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
231 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
145 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
153 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
497 views
Risk battle simulator v1
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
680 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 ...
14
votes
2answers
1k 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
113 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
2k 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
127 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
108 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
60 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
...
17
votes
2answers
4k 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
281 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
363 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
706 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
69 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
196 views
Simulate Random Risk Battle
For Prof. Yorgey's 2013 Haskell course, I'm working on a homework to simulate a Risk battle.
...
21
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
485 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
3k 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 ...
14
votes
2answers
1k 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
983 views
5
votes
3answers
4k 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 ...
18
votes
4answers
2k 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
124 views