Questions tagged [game]
For questions requesting reviews of game development code.
1,936
questions
-3
votes
0
answers
45
views
first snake game [closed]
I've just worked on my first game in C and have a few questions.
how would I make it where my box is nicer?
I'm having issues trying to figure out how to make the snake grow in size when it eats.
...
1
vote
1
answer
76
views
Simple Tic-tac-toe in Python
I am a beginner programmer who coded a simple Tic-tac-toe in Python for practice. Any feedback, especially regarding best practices and tidying up the code, is appreciated.
...
2
votes
1
answer
74
views
Casino Number Guessing Game
I have created a casino number guessing game in C++:
...
1
vote
0
answers
59
views
My code.org Game Lab project is running really slowly, how can I optimize the code further?
I'm working on my final project, and it is a game made with Java Script in code.org's Game Lab. The code worked fine, and it was not slow at all, but as I worked on it, it became much slower! The ...
3
votes
1
answer
142
views
Re: C++ 4X Game
This post is regarding the revamp of this post/project I did about 8 months ago. I took a lot of the advice from the suggestions provided (thank you by the way), and fixed the project up, so I'm ...
5
votes
3
answers
2k
views
"Rock Paper Scissors" game
I have created a rock paper scissors game in C++.
...
5
votes
0
answers
223
views
GUI Tic-Tac-Toe game with six AI players - part 1: the UI
This is a huge project that I have worked on for the past few months, it contains 16 scripts, one of the scripts is used to analyze the other scripts. There are 111004 characters in all the script ...
2
votes
1
answer
52
views
"2048" game in JavaFX
I wrote my first code in Java and I need constructive criticism and code review.
This is an implementation of the well-known "2048" sliding-blocks game.
...
5
votes
1
answer
127
views
Recreated Snake in Rust
This is my first ever program in Rust. I've made it using only the book, the reference, and any documentation about the crates/functions I was using on the official rust lang website.
I have the ...
4
votes
1
answer
331
views
Porting xoroshiro1024** from C to C#, and seeding it
I require a PRNG which:
Has repeatable results from a given state.
Is both seeded from and has a state containing a sufficiently large amount of data (somewhere in the region of 700 bits or more) to ...
2
votes
1
answer
104
views
Tic-tac-toe game for Windows console
I am doing C++ for over a year and this is my game I tried making tic-tac-toe. And it's also my first program that uses multiple source files.
main.cpp
...
2
votes
1
answer
670
views
Little CLI game in C++ with random words
the game is quite simple, you have to constantly guess the letters of a hidden word, but has a limited number of wrong attempts. The word you are looking for should be a random word from Wikipedia. I ...
8
votes
8
answers
3k
views
Can I lessen the use of boolean flag variables in this snippet?
Below snippet is part of a game application's logic and the Update function is called every frame (about 60 times a second).
...
10
votes
3
answers
1k
views
Here is a Tic Tac Toe game in Python using functions
I am a new programmer, learning from youtube and other sites I can get my hands on. The assignment was clear. Create a Tic Tac Toe game using functions as much as possible and where needed.
I am ...
1
vote
0
answers
39
views
Snake game player movement pygame
I've begun my journey with game development a little while ago, thought recreating snake would be cool, except I plan on adding other cool mechanics and stuff to it later. The player controller script ...
4
votes
1
answer
256
views
This is a Tic Tac Toe game in Python for 2 players on a keyboard using functions
I have written a Tic-Tac-Toe game for two players, where each player uses the same keyboard in Python
I'm happy with all kinds of feedback from this community, it is very much appreciated. I am ...
1
vote
1
answer
183
views
Mouse and keyboard event system
I wrote a mouse and keyboard event system in C++, using the GLFW library to get mouse and keyboard states.
I've been working on a 3D game engine of my own for a long time (about 9 months) and wanted ...
6
votes
2
answers
379
views
DOS-based Boggle simulator
I'm testing my C skills by writing my first-ever full application in C. I'm targeting DOS (as in MS-DOS/PC-DOS and DOSBox) and am compiling the code with Open Watcom v2.0. The application does the ...
3
votes
2
answers
2k
views
Event System using C++
I am excited to share that I have developed an event system in C++. I have always been passionate about programming and have long aspired to create a low-level game engine solely using C++, OpenGL, ...
3
votes
1
answer
178
views
Snake game using Canvas API
Edit 2: For anyone interested, you can play the game at buggysnake.com
Edit 1: I have typed up the code for making the body of the snake move. It's not perfect and there are small problems I need to ...
4
votes
1
answer
106
views
Basic CLI BlackJack Game in Java
I am looking to see which aspects of this code could use improvement.
In both design, and basic implementation and coding.
I'm using IntelliJ and Java SE 20.
...
2
votes
2
answers
128
views
OOP tic-tac-toe
I have created my first personal project - tic tac toe game. It is my first time approaching code using Object-Oriented paradigm and I would like to get feedback on it and on aspects where I can ...
4
votes
2
answers
187
views
"paper, rock, scissors" game
This is the first time I made a quick program, which is a game "paper, rock, scissors'. I am looking for any advice, and information if it is done in proper way or it is not.
I did my code by ...
4
votes
1
answer
177
views
Hangman Game in HTML + CSS + JS
I recently developed a hangman game with HTML, CSS and JavaScript and I would like to get your feedback and tips to improve it. The goal of the game is to guess a secret word before 6 incorrect ...
0
votes
1
answer
152
views
Text based naval game
here is the second game I have made. its not easy and I was hoping someone could test it and bring some improvements to the table. fun project for learning.
...
4
votes
1
answer
321
views
Rock, paper, scissors with HTML & CSS & JS
I started studying web development a few months ago and to practice my skills I decided to do the game of rock, paper, scissors.
Here are some questions for review:
Is the use of HTML semantics ...
4
votes
1
answer
276
views
2D Minecraft - infinite chunk system
I am making a 2d minecraft clone for a hobby.
Here is my code:
2D_MC.py:
...
7
votes
2
answers
157
views
simple connect four game
I made a simple connect four terminal game in C and was wondering if I could get feedback on it. I mainly want to know where pointers could have optimised my code, and if there are any major ...
3
votes
1
answer
82
views
Winsock code for lockstep RTS game
Summary
This is my core networking code for the lockstep RTS game that I am creating. Clients connect to a relay server via a TCP socket, and any packets sent to the relay server are forwarded to all ...
6
votes
1
answer
368
views
Event manager for games written in C++17
This is a single header event manager that I'm using in my game.
Disclaimer
I ripped everything from these lovely people:
https://austinmorlan.com/posts/entity_component_system/
C++ Event System - ...
4
votes
1
answer
160
views
Text based game with Goblins, Trolls and Beasts
I have just started to learn to code as it always been a pipe dream of mine but I found it hard to understand, however, with the rise of LLMs I have found the experience not nearly as daunting as ...
7
votes
1
answer
83
views
Any advice for my HANGMAN game with PySimpleGUI?
Could you please tell me if there's anything I could improve in my Hangman Game ?
I made this Hangman Game in PyCharm and been improving and adding features for some time. It would be nice if someone ...
0
votes
1
answer
95
views
Strategy Pattern Inside State Pattern
I'm making a fps game where I created a hierarchical state machine; the problem is the two types of movement (standing movement and crouching movement). They are very similar; the only difference is ...
6
votes
1
answer
269
views
Crossword puzzle app
I was hoping someone could give me any tips or advice on this program I wrote for my high school class. The point of the program is to create a workable crossword puzzle in the console. If it works ...
2
votes
1
answer
83
views
Game of life(random generation, pygame)
I recently created game about life in python. First version of code was console, but recently I rewrote this game in pygame. I decied upgrade game and was added age of cells. But now I can see that my ...
6
votes
3
answers
2k
views
The Game of Nim
I am currently looking for a language to program a game for my FYP which is to program the game "The game of nim". I am currently looking at pygame for this program, I hope someone can give ...
6
votes
4
answers
216
views
2-Player Chess in WinForms V.2 (With Separation of Concerns)
Introduction
After getting initial feedback on my first working version of this Chess WinForms game here, I have used the suggestions and comments from there to come up with this new version, trying ...
6
votes
1
answer
304
views
Minesweeper game implementation in (vanilla) JS
I decided to write my own version of a Mine Sweeper game as an excuse for a Javascript/HTML/CSS project. Just to make the question self-contained: Mine Sweeper is a game with a rectangular board ...
4
votes
3
answers
313
views
Fully-functioning chess game in Python
This post is in succession to this question. I have implemented all functionalities like castling, en-passant, pawn promotion etc. 50 move rule and 3-move repetition is pending.
I would like my code ...
5
votes
2
answers
257
views
Working on a text-based 4X game in C++
The ‘skeleton’ of the game works, making it playable, so I’m mainly just looking for renditions and feedback on both the code, and the actual game.
Here’s the things I’m already working to fix/add:
...
4
votes
3
answers
247
views
Word-guessing game
The objective of the game is to guess a five-lettered word in five guesses or less. When the user (player) enters a word, the application will inform the user whether their guess was correct or not. ...
3
votes
2
answers
326
views
2-Player Chess in WinForms
Introduction
I decided to program a two player Chess game in C# windows forms to help me to improve my programming skills and OOP skills.
I have come to a working finished program (as far as I can ...
4
votes
1
answer
100
views
number-guessing game - 1 through 30
I created this python number-guessing game and I have two concerns with it. The code works as intended with no flaws; however, I'm not too fond of the way I wrote it. It is messy, unorganized, and all ...
1
vote
2
answers
73
views
UI of a text-based game with simple print statements
I am writing a simple text adventure in python that will eventually have the capability of running other text adventures within it, but my code is all over the place and the UI is terrible. What are ...
0
votes
0
answers
67
views
Windows console based card solitaire (Klondike)
I have written a solitaire card game for the windows console.
It's the Klondike version with 4 cards in each of the 7 piles
(see https://en.wikipedia.org/wiki/Klondike_(solitaire)).
The piles must be ...
0
votes
0
answers
50
views
Main menu for a LÖVE pong game
It's supposed to be the code for the main menu of a pong game I'm writing using LÖVE. I believe no knowledge on it is necessary for understanding, since it seems very explicit. I'm mostly unsure if ...
5
votes
1
answer
114
views
guess-the-number game
I'm a total Python beginner and made a number guessing game as first project. The user has to guess the number the computer is thinking of. Please give me feedback!
...
4
votes
1
answer
289
views
Hangman game, with secret word provided by user
I recently started learning programming and in particular Java. I wrote this small hangman game which takes the input for the secret word from the user.
It all works as intended; I would like to know ...
3
votes
2
answers
313
views
(Rev. 2) Command-line Tower of Hanoi game
This is a follow-up from Command-line Tower of Hanoi game -- many thanks to those whose reviwed it.
By request, the project is also available on GitHub. Forks and bug reports are welcomed.
Compiled ...
1
vote
0
answers
142
views
Haskell SDL2 Yellow Snow Game. My first program [closed]
I have been working hard trying to learn Haskell, or at least understand it enough to make simple programs. This is my first program. I have been working on it for about a month now. I had already ...