Questions tagged [battle-simulation]
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.
84
questions
4
votes
2
answers
1k
views
Battle terminal-based game
I'm new to learning OOP in python and played around with it, making this quick battle terminal based game-ish, but I'm wondering how I can optimize this to maybe less lines of code and just overall ...
5
votes
1
answer
420
views
Text RPG in Python
I'm a beginner in python and my code looks a little cluttered and a lot of lines are being duplicated, so I was wondering if I could get some suggestions on how to declutter and improve?
...
5
votes
1
answer
979
views
Text-based adventure game where you fight two enemies per round
This is a text based adventure game, where you need to fight against 2 enemy in every round. The damage dealt and potion heal is a random number.
How can I improve?
Game class:
...
2
votes
1
answer
132
views
Enemy damaging with regen system
Small project i made to practice my c++, im a beginner and want to know all about optimizing code.
Enemy starts off with 10 HP and we can damage them for 1 HP by pressing F1,
If their HP is below ...
8
votes
2
answers
1k
views
Pokemon battle simulation
Started learning C++ a few weeks ago, tried to accurately simulate a Pokemon battle. Not too optimistic how it turned out, please tell me how I could improve it.
Only the bare minimum(damage, accuracy,...
4
votes
1
answer
180
views
My first battle simulator (updated)
I am new and trying to learn programming and have been working on a battle simulator that I hope to eventually develop into a RPG game with characters, areas to explore, etc. I have been working on ...
8
votes
2
answers
216
views
My first battle simulator
This is my code I wrote completely on my own. Its one of my first real programs that I have written using booleans, functions, and loops if anyone could give me some feedback about how its structured ...
4
votes
1
answer
422
views
Dungeon and Dragons Text Based Game
I've created a text based game based on D&D as part of exercise
No.45 Learning Python the Hard Way v3.0
I've implemented a few features from the game:
Character Selection,
Fight Scene,
Rolling.
...
18
votes
4
answers
3k
views
Hero battle game
This is my first attempt at OOP/classes: a game where you will select a character and use attacks and abilities to defeat the enemy character.
I have a few specific questions:
I was told that having ...
4
votes
1
answer
65
views
Function to determine the effect of a lightning bolt on a game character using "abilities" [closed]
I'm writing my first game and would love some advice on how to get away from all this hardcoding I'm using...
Each Character has "abilities" (all individual functions) but I can't seem to figure out ...
3
votes
2
answers
943
views
Text based fighting simulator in Python
This is my first large project, a text based fighting simulator.
It is very clunky, do you have any ideas on how to make the code better?
and how to make the code not get printed at once
...
5
votes
1
answer
4k
views
Text-based fighting game in Python 3.0
I have began to practice Python after a couple of years and for my first Project, i decided to make a fighting/rpg-like game with different characters. So far, I am only familiar with loops and ...
2
votes
1
answer
382
views
Shooter game simulation
The program is a little code about guns with user input. The program is a perfect representation of the beauty of functions. What do you think of it?
...
5
votes
1
answer
605
views
Two ways of implementing a combat system
Below is a segment of a game I am writing to stay in practice with my Java.
EDIT The class this method is in is the Encounter class. This class just manages the encounter between the player and an ...
6
votes
1
answer
434
views
Game that fights random enemy
This program is the basis for a bigger game I'm working on. I want to make sure I did this correctly before moving on. Please give pointers to anything I can improve. I'm learning on my own, so I ...