Questions tagged [game]
For questions requesting reviews of game development code.
1,847
questions
3
votes
2
answers
27
views
A simple spaceship game
How could I improve this code? It's a little game. If you run it, instructions will appear.
In particular, I'd like to know whether I can
make it considerably shorter
any trick :) ?
whether I can get ...
1
vote
0
answers
11
views
Minesweeper using Tkinter
So, I have completed a Minesweeper program in Python using Tkinter.
A few questions:
I feel I should convert this to Object-Oriented Programming. Any starting tips?
Expanding on the above, I have way ...
-1
votes
0
answers
26
views
Make requestAnimationFrame faster javascript [closed]
I'm creating a gameloop using requestAnimationFrame. But I have a little problem. My webpage has also a sidebar, which can be toggled on/off
I made it so when the sidebar is OFF (not shown in the ...
2
votes
1
answer
60
views
A simple hangman game in Haskell
I just finished a course of functional programming in uni and continued to study Haskell because I found it very interesting! I made a simple hangman game and would like to hear any of your thoughts ...
3
votes
2
answers
81
views
Simple Java Tetris game
I have no IT background and taught myself Java and made a simple Tetris game. I compared my code on the internet with other tutorials. My first impression of those implementations is that they are ...
2
votes
1
answer
74
views
my first Tic-Tac-Toe game
This is my first post here, as I just started learning a bit of code pretty recently through "Automate Boring Stuff".
In one exercise, to learn about dictionaries, it was shown how to build ...
6
votes
1
answer
87
views
MadLibs builder
This is actually my version of a project I'm giving to my class of High School juniors. I'm not the greatest programmer and also a new teacher so I was hoping someone could check out this code and ...
3
votes
1
answer
85
views
Noughts and Crosses Python3
I'm trying to get more coding experience and decided to start small with a basic noughts & crosses game.
Any feedback is welcome and below are the items I think I should add
a print out of an ...
3
votes
1
answer
70
views
Asteroid-avoidance arcade game in pygame
Out of boredom one day I decided to make a game in pygame. I think it turned out fine, but am absolutely sure that it can be improved. How so?
...
2
votes
1
answer
52
views
Connect4 game multiplayer
I made a connect4 game in c++ please tell my how I can make the code better, thanks.
I already asked some people and they told me i should be using fixed witdh ints and [[nodiscard]] on functions that ...
-4
votes
0
answers
29
views
Connect4 game board class [duplicate]
I'm making a connect4 game in c++ and so far i have almost got the board class done
before I continue coding i want your thoughts on what I should improve because
i definently feel like this could be ...
1
vote
2
answers
55
views
Basic OpenGL application that renders multiple cubes on a textured plane, setup for a 3D game
I'm learning OpenGL and started work on a small 3D game (like Sokoban) for practice. I want to know if the design of my OpenGL code reflects a good understanding of the technology. For example, one ...
5
votes
2
answers
104
views
Playing a game of ConHex in Python
Background
ConHex is game by Michail Antonow where two players try to create a connected chain of cells from one side of the board to the other side. They do this by claiming one empty position each ...
4
votes
1
answer
128
views
Blackjack game in C++
I developed a blackjack game. I am relatively new to c++ and OOP, so I am asking for feedback on what could be improved. This game features betting, taking a card, standing, and splitting a hand. ...
3
votes
1
answer
100
views
Console Slot Machine written in C#
This is my console simulation of the Slot Machine in C#. Please take a look at this code and point out possible ways of improvement.
...
2
votes
0
answers
36
views
simple OOP Blackjack
It has been a long time since I have gotten into OOP with python. I made this short little program. Are there any ways that I can make it more clear or concise (pythonic if you may)?
...
2
votes
0
answers
28
views
Minesweeper program using Tkinter
I have complete my minesweeper game using Tkinter and would like to know ways to improve. I also have a question for extra features: does anybody know a way to have a opening start, like google ...
4
votes
2
answers
762
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 ...
0
votes
0
answers
45
views
Component to apply FABRIK in Unreal Engine
I read the FABRIK and implemented it to study Unreal syntax.
Update the position in the FABRIK Segment component.
It is used to update the relative position of the static mesh using the updated ...
1
vote
0
answers
77
views
Cookie Clicker on JS, with Buttons for upgrades
I'm new to JS, so I'm most likely coding badly. Can you please point out the errors and correct the code? the site complains that it needs to write more text, but I don’t know what else to write
HTML
...
3
votes
2
answers
120
views
Game of life with options like windows and board size
Mainly I am looking for a better way to control the user input in the game loop which is in the first file. Since the nested switch with many ...
2
votes
1
answer
63
views
A Rust beginner's Hangman game
I have been learning Rust for a few days (This is my third) now, and I've really fallen in love with the language, this is my first real project, Hangman. I was wondering what I could do better / what ...
6
votes
3
answers
179
views
Predict bouncing ball destination in JavaScript
In a Pong-style 2D game, a ball (a circle of radius BALLRADIUS) can bounce (with perfect elasticity) on the top or bottom of the screen. When it hits the left or right side of the screen, one of the ...
1
vote
1
answer
59
views
Basic Event manager implementation
I have written a very simple algorithm vizualizer where all input is coming from the mouse and I needed an event manager for that. Since I never wrote one before, I wrote a 30 min implementation to ...
2
votes
0
answers
34
views
Interactive Gundam using only Matplotlib
The code below plots a background image (sky) and then a Gundam sprite using Matplotlib. It also creates 4 buttons with obvious purposes.
The Gundam class stores 2 ...
1
vote
1
answer
62
views
First Web App - Pig Game
I'm learning web development with JavaScript, HTML, and CSS and have just created my first application, a Pig Game. The app works well, however, I think my CSS is a bit over complicated and that the ...
1
vote
1
answer
84
views
Java implementation of Yahtzee
I'm trying to implement the game of Yahtzee in java.
This is for a project at my university so I tried to be as clean and to use the best code practices as possible. The part in particular that I ...
0
votes
1
answer
72
views
A text based DND game, (im 3 months into coding)
This is going to include my original code, and also revisions I have made, so far I have gotten some help on my character creations portion, and have revised it.
I just would like input as to where I ...
3
votes
2
answers
137
views
Python random number guessing game
I've been learning Python for about 4 days now. Python is my first programming language, so I'm not that good at coding yet. I have been programming a little random number game as my first project and ...
0
votes
1
answer
82
views
basic tic tac toe
I looked a little into HTML a year ago but decided to try python yesterday and came up with this for tic-tac-toe. I have no programming experience and I haven't yet looked at other peoples versions of ...
3
votes
2
answers
130
views
battleship game with two ships per player
I'm creating a battleship game in Ruby.
Let me explain how it works:
The game is played on 5x5 grids (one per player).
Players have 2 ships each to place on their grid. A small ship (3x1 side) and a ...
3
votes
1
answer
81
views
Blackjack game in python w/ bot
I am a beginner programmer and this is my first project, a blackjack game with a functioning dealer in python. Any feedback would be appreciated (especially if its about bot improvement).
...
1
vote
0
answers
65
views
Advice on Update function in my Game Loop [closed]
I have this update fx for my Player object in game loop, game is top-down in-space thing with boom-booms and such. Me being weak at maths is huge understatement so my implementation is concoction of ...
2
votes
1
answer
116
views
C++ Blackjack game (rough version)
Below is the Blackjack program code. How do I make the code look nicer?
I feel like the code is super messy and I was wondering how I could make it look better or if there are better ways to write ...
3
votes
0
answers
179
views
Command line wordle
I am seeking a review of my command line wordle game.
Having only recently started exploring functional programming, I expect that there will be no shortage of areas to improve. This is my first ...
1
vote
2
answers
66
views
Simple terminal TicTacToe
Coming from JavaScript, I needed to learn C++ recently, so I thought a great way to start is to create a simple terminal-based tic-tac-toe game. I encountered some difficulties especially with multi-...
6
votes
1
answer
124
views
Plants vs. Zombies simulator
I am making a pvz simulator. We have a game board with 1 = peashooter and 2 = zombie:
...
7
votes
2
answers
238
views
Wordle clone in Python
I spent some time making a simple Wordle clone in Python. The word bank consists of all words of a specified length taken from nltk's Brown corpus. I would appreciate any advice or criticism to ...
3
votes
1
answer
65
views
Skill leveling system with different skill level titles
I'm making a text-based RPG in JavaScript. I made a skill leveling system that works, but I feel like the function arguments get passed around a lot and, the code is not very scalable. Do you have any ...
8
votes
1
answer
416
views
(Beginner) Mastermind game in Python
After completing an introduction to Python tutorial, I wanted to put my basic knowledge of control flow and data structures to use, and felt this was a great choice for my first program.
I created the ...
0
votes
2
answers
87
views
Create walls in a game from a random maze
I use four bools, if true a wall is in that direction:
...
2
votes
1
answer
224
views
Ping pong game (console)
I've made a 2 player game in c# console that is a ping pong game. I've made it in more or less 4 hours and in my opinion it is the best performing game I've made so far.
Just to let you know, I am a ...
3
votes
1
answer
170
views
a tiny rpg game using Phaser 3
I wrote a tiny game using Phaser 3, here is the code.
...
7
votes
2
answers
516
views
Hangman game in Python with nine possible words
I'm relatively new to Python, and I've been using the language for about a month. I set out to do the Hangman game. I would like to know if there are things to improve in the code of the program I ...
2
votes
0
answers
116
views
OOP Blackjack in Python 3.9.9
I've noticed I'm not the first to post this topic. As a matter of fact, I have taken some inspiration from Victor Nguyen Bao's post to help structure my code. Here's the link to his code: Structured ...
4
votes
2
answers
76
views
Would love some insight on the current state of my Blackjack code
I started coding blackjack from scratch and just finished the basics so I would love some insight. I would really appreciate if any of you could look through it and let me know if there's anything I ...
3
votes
2
answers
120
views
A very basic Black Jack program, which just lets you play one round without any balance or betting
I just wanted to make a fun project for practise and as far as I know the program runs just fine without any flaws, but I would like to add an option to it, if a round ends to ask the user if he wants ...
5
votes
2
answers
389
views
Mine sweeping game for the terminal
Over the holidays I was bored due to lockdown and implemented a mine sweeping game for the terminal. Any feedback is welcome.
...
7
votes
2
answers
792
views
Four-in-a-Row game
I've made a working Four-in-a-Row game with grid lists and winning system. Both vertically and diagonally, is there some clear improvements to be made or common mistakes which could perhaps shorten it ...
0
votes
0
answers
31
views
A bit of inventory management code I made using ScriptableObjects in Unity that lets you find items, check if you have items, and take items
It took me a while to figure this out, it's probably the most flexible code I've made.
There might be some small mistake somewhere as I didn't get to fully test it, I'm just looking for glaring issues ...