Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
7
votes
2answers
475 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
0answers
54 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
2answers
63 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
2answers
108 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
2answers
374 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
2answers
514 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
0answers
20 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 ...
4
votes
1answer
288 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: ...
5
votes
1answer
81 views

Space Invaders clone for a college project

Edit: the project was submitted, and I got a good grade! :D I am finishing up a project for my computer science class. The project is a space invaders clone that uses the JavaFX library to provide ...
3
votes
2answers
128 views

Python TIC TAC TOE Project

I just joined here. I have been doing python for a couple of weeks and I would like for some experienced programmers to review my code. I made this for a school project and I am proud of it. The code ...
1
vote
1answer
39 views

When I try to re set up my code after failing in the game I cant get it to run the function without its own file being undefined [closed]

I know my code is ugly and unreadable. I originally had the game working without class functions but when I had to implement class function it all went downhill. TennisMaster.py ...
1
vote
2answers
113 views

Card deck for Blackjack in an OOP style [closed]

So far I have made a class called Deck, to create and shuffle a deck of cards, and a class called Player, which I want to use to create the gambler and the dealer. My Player class inherits from the ...
1
vote
2answers
195 views

I Made a Simple BattleShip Game On C# Console

I made a simple battleship in C# console with a little AI ( just a little ) and The goal of this practice is improving my knowledge about OOP. Game Rules: 1.You Attack To The Enemy then he Attacked ...
3
votes
2answers
120 views

I made a Simple Score Game in C# Console

I've created a simple score game. The goal is improving my knowledge about OOP. This is my Main method: ...
2
votes
2answers
123 views

Rock Paper Scissors Game using if statements

I am doing the codecademy course and had to do a rock paper scissors game as a project. Rather than following the instructions I tried Doing it on my own. How I could make the code more efficient? <...
2
votes
1answer
90 views

Implementation of an entity component system in c++

I tried to write a simple entity component system for my game engine. Each scene will have an EntityManager. It will create entities and add or remove components from them. An entity will be destroyed ...
4
votes
1answer
108 views

Simple item and inventory system

Items.cs, Creates dictionaries, enumerators, and classes for every type of item. ...
6
votes
2answers
210 views

ASCII-based OOP blackjack game in Python

I'm new to programming and have been teaching myself to code for about 6 months. Since I have no one to ask about any of coding-related questions, I may have developed bad habits in the meantime, but ...
2
votes
0answers
75 views

Arcade Stacker Game - Core Logic

This is my first post here, so I apologize if anything is incorrect. I have created an endless arcade stacker game (like the stacker games at the arcade, but when you hit the top the grid resets and ...
1
vote
1answer
73 views

Guess The Number Game with GUI

So I've decided to practice I will turn all my scripts etc into GUI apps. So my 36 loc guess the number game turned into 136 loc. It's not the best looking, but it does work and on hard it's actually ...
6
votes
2answers
183 views

Console battleship game made in C

I started out to learn more about C to learn more about low level programming and hardware and I can improve. It generates a random number between 1 and 4 then stores it into two variables. It takes ...
2
votes
3answers
330 views

tic-tac-toe game with a vector

This is my first game ever. I' learning C++ now and I decided to make a game. I saw a snake game that works with the draw-input-logic system and I really liked it. I tried to make a tic tac toe game. ...
5
votes
2answers
662 views

Hangman game coded in C++

I have completed my hangman project in C++. I would like your thoughts and improvements on my implementation. Here is the code: ...
4
votes
2answers
164 views

first Go program: Tic Tac Toe

If I formatted my question wrong, feel free to notify me or update, this is my first question on this subforum This is literally my first ever Go project, decided to make a Tic Tac Toe (ironically I ...
6
votes
3answers
438 views

Rock-paper-scissors in C++

I'm relatively new to C++, and have attempted a Rock Paper Scissors game, and it works. Here and there I added some countdowns so that the program doesn't run instantly. Any tips for improving the ...
10
votes
3answers
871 views

Text-based role-playing game

I created a text-based RPG. game.py ...
3
votes
3answers
170 views

Terminal based "Connect 4" game in Python

I started learning Python a few weeks ago and coded this "Connect 4" game. What could I have done better? How efficient is this code and how could I improve on that? ...
-1
votes
2answers
154 views

A simple java game engine [closed]

I'm starting an object orientated game engine in Java. My plans for the engine is to be able to split things easily into multi-core loads. My idea is that a Unique (interface with a ...
1
vote
1answer
53 views

Tic Tac Toe game with an adjustable grid size in Tkinter

I've created a full Tic tac toe game in Tkinter that has single and multiplayer modes. The single player mode then has a hard and easy difficulty. The easy difficulty is just choosing a random open ...
2
votes
1answer
70 views

Simple game of Chutes and Ladders

I recently made a new project for Chutes and Ladders (the Hasbro version of Snakes and ladders) and it is located here: https://github.com/vchittar/ChutesAndLadders BoardLogic (implements an interface)...
5
votes
4answers
177 views

Create a little adventure world

I have just recently picked up coding and am trying to improve my coding. I've written this bit of code to create a little adventure world. I haven't completed the code, everything runs how I want it ...
2
votes
2answers
71 views

Number guessing game in Ruby

I am a newbie in Ruby. I want to learn Ruby and I want to learn clear code in Ruby. I coded a number guessing game but my code is smelling bad. How I can do better code? ...
7
votes
2answers
194 views

2D Maze Game with Monsters

Introduction I've started to learn C programming a bit and wanted to create a simple 2D console game. Let me first introduce you to the game level/map structure: ...
0
votes
0answers
23 views

Class for handling key/mouse inputs

I'm writing an html5 canvas game for the first time. To start with, I decided to make the below class so I can check for inputs every update loop. The class can detect key/mouse down/up events and ...
0
votes
0answers
73 views

Conway's Game of Life written in JavaScript

So I'm staying up for 24 hours watching Le Mans and decided to write something fun. I wrote an implementation of Conway's Game of Life (information here if required). All feedback is welcome (...
6
votes
2answers
105 views

Conway's game of life as Java OO with underlaying array

Well, there are many game of life's already, but after posting an answer on it in C#, I thought I might as well check if I did any better and if there is anything new to learn - there always is. ...
1
vote
0answers
94 views

I'm making a 2D game engine with JAVA Eclipse 2021-06 but it is underperforming in FPS for my NVidia RTX 3070

This is my first Stack Exchange question, so please bare with me. I'm following this tutorial on youtube by The Cherno, Im only up to episode 16 and I have done this on another laptop before and had ...
3
votes
2answers
437 views

Simple Blackjack Game in c++

I made a simple BlackJack game and I want to make it as good as possible before I move on to creating a few other games in my "casino" - let me know how I can improve it I added a few things ...
0
votes
0answers
105 views

Unity C# CubeController script (jumping & moving the cube)

I'm kinda new to C# and Unity, coming from PHP/Python background. So I'm curious, if this CubeController script can be considered a bad code. I mean the coding style, performance, & overall Unity ...
0
votes
1answer
53 views

Avoiding cloning references in a Specs system

I'm working on a card game using Amethyst's Specs crate and am fairly new to Rust (therefore I'm learning through the fight with the compiler). My first System is ...
5
votes
2answers
109 views

C++ Connect-four game with little AI (Version two)

Here is the improved code ...
5
votes
1answer
167 views

Python text game. combat system with enemies in the same position

I recently started programming and ran into a problem in the battle algorithm. This piece of code checks if there is someone in the position of the main character. If there is, then the battle begins (...
3
votes
0answers
88 views

A Compile-time templated event system and dispatch manager

Problem I would like to make an efficient, extensible, and potentially asynchronous parallelizable event system using modern features in c++20. My solution I've ...
3
votes
2answers
145 views

Hangman game with only one word

This is a hangman game. The only word is 'word' and I am not planning on changing this since I am not going to publish this game or anything. If there is any unnecessary/bad code I need to get rid of, ...
11
votes
3answers
1k views

My blit function for my own graphics library

Here is a blit function for a graphics library I made. I've built a small graphics library that uses an palette-indexed spritesheet to hold all of the game's sprites. The blit function copies parts of ...
2
votes
1answer
112 views

Terminal python tic-tac-toe game

As someone that started to learn basic python programming, I decided to make a Python tic-tac-toe game for the terminal, to develop my OOP skills. I would like to know if my code has a lot of ...
2
votes
2answers
176 views

Object-oriented poker game

To give a short contextual description: It is a poker game. I plan to add "cards" and a "pot"-object later on and then learn event-driven programming so that I can add a GUI. ...
0
votes
1answer
44 views

Submitting highscore in PHP

So, I am interested, what is the proper way to submit a highsocre (such as of a Pacman game) in PHP? Here is what I tried: ...
2
votes
1answer
63 views

Python Text-Based Hangman Game

I have just written a hangman game in Python for a school project. It reads in a list of words from a text file, and graphics from another text file. For each word, the program asks keeps asking for ...
4
votes
1answer
98 views

class that handles the rpg game map

I created a class to handle maps in my RPG game, before it became a class this was a collection of functions I created, but I thought it could be used as a class. although this code is working but i ...

1
2 3 4 5
37