Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
14 votes
2 answers
3k views

Wordle Game clone

I am a beginner programmer and have recently finished coding a clone of the game Wordle. I want to know if the way I programmed this game is efficient, solid, and overall good code. I also want to ...
edwardvth's user avatar
  • 143
1 vote
0 answers
138 views

Simple rust ECS with no dynamic dispatch

I'm trying to write a minimal, high performance uncomplicated ECS for a simple game in which I have a good idea of all of the Entity and Component types from the get-go. I want to take advantage of ...
Blue7's user avatar
  • 373
3 votes
1 answer
161 views

Connect4 game with "Minimax-AI" and raylib

I am just trying to understand the minimax algorithm better and how it works, so I made this basic connect4 game with raylib. It works fine, but I think there must be some kind of flaw in the logic, ...
Maxell 's user avatar
4 votes
2 answers
402 views

Game loop using Future.wait_for to check for input

I started writing this game from scratch yesterday, and I wasn't completely new to C++'s future library. I only use the ...
FLAK-ZOSO's user avatar
  • 143
4 votes
2 answers
733 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 ...
Simone Licciardi's user avatar
1 vote
0 answers
109 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 ...
cold10's user avatar
  • 459
3 votes
1 answer
121 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 ...
ola_bandola's user avatar
3 votes
2 answers
520 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 ...
Si Vafo's user avatar
  • 53
2 votes
1 answer
144 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 ...
Miguel Rodrigues's user avatar
6 votes
1 answer
208 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 ...
Sean Riley's user avatar
3 votes
1 answer
548 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 ...
MM360's user avatar
  • 43
3 votes
1 answer
137 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? ...
CodeWizard777's user avatar
2 votes
1 answer
87 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 ...
user259137's user avatar
-4 votes
0 answers
31 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 ...
user259137's user avatar
2 votes
2 answers
606 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 ...
GM997's user avatar
  • 21
5 votes
2 answers
125 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 ...
agtoever's user avatar
  • 458
4 votes
1 answer
1k 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. ...
Andrei Rost's user avatar
3 votes
1 answer
853 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. ...
K1BeR's user avatar
  • 39
2 votes
0 answers
75 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)? ...
Thornily's user avatar
  • 121
2 votes
0 answers
93 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 ...
cold10's user avatar
  • 459
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 ...
Titsnium's user avatar
1 vote
1 answer
1k 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 ...
Wellmare's user avatar
3 votes
2 answers
145 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 ...
yolo expectz's user avatar
2 votes
1 answer
98 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 ...
Sam's user avatar
  • 43
6 votes
3 answers
280 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 ...
Stuart's user avatar
  • 2,790
1 vote
1 answer
391 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 ...
a a's user avatar
  • 157
2 votes
0 answers
75 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 ...
Redsbefall's user avatar
  • 1,132
1 vote
1 answer
158 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 ...
schan's user avatar
  • 11
1 vote
1 answer
332 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 ...
Andrea Zasa's user avatar
0 votes
1 answer
757 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 ...
zmoney's user avatar
  • 9
3 votes
2 answers
360 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 ...
Marc Matthäus's user avatar
0 votes
1 answer
134 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 ...
Kkw's user avatar
  • 11
4 votes
2 answers
493 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 ...
Edouard's user avatar
  • 41
3 votes
1 answer
340 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). ...
Sukrit Desai's user avatar
1 vote
0 answers
85 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 ...
Jan Šebek's user avatar
2 votes
1 answer
320 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 ...
Terry Brock's user avatar
3 votes
0 answers
250 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 ...
Adam Hodgson's user avatar
1 vote
2 answers
213 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-...
code's user avatar
  • 149
6 votes
1 answer
515 views

Plants vs. Zombies simulator

I am making a pvz simulator. We have a game board with 1 = peashooter and 2 = zombie: ...
Alan Bagel's user avatar
7 votes
2 answers
407 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 ...
astralcheeks's user avatar
3 votes
1 answer
278 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 ...
LuckyLuke's user avatar
8 votes
1 answer
929 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 ...
M.White's user avatar
  • 83
0 votes
2 answers
164 views

Create walls in a game from a random maze

I use four bools, if true a wall is in that direction: ...
Munkybunky's user avatar
2 votes
1 answer
1k 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 ...
BobbyGopnik's user avatar
3 votes
1 answer
234 views

a tiny rpg game using Phaser 3

I wrote a tiny game using Phaser 3, here is the code. ...
AlbertJ's user avatar
  • 199
7 votes
2 answers
806 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 ...
Lucio Mazzini's user avatar
2 votes
0 answers
319 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 ...
BitEagle's user avatar
4 votes
2 answers
88 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 ...
obliterate's user avatar
3 votes
2 answers
132 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 ...
Maxell 's user avatar
5 votes
2 answers
444 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. ...
Richard Neumann's user avatar

1 2
3
4 5
39