Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
4 votes
2 answers
99 views

ZX80 game in C++

In order to help with learning C++, I have been re-implementing games from old ZX80 books in C++. Here' the description of one I'm currently working on: You are a starship captain. You have crashed ...
samfrances's user avatar
3 votes
1 answer
169 views

Tic Tac Toe in Python 3.x

I made Tic Tac Toe in Python. Standard code review, please tell me ways to improve. I am very new to Python, so please do not criticize very roundabout ways. Thanks. ...
cold10's user avatar
  • 459
4 votes
2 answers
267 views

Revised Top-Down Dungeon RPG

Introduction: So far, the game works well, and my only major concerns, are a bullet system (including a function where you click the mouse to shoot the bullets), and a collision system between the ...
Zelda's user avatar
  • 123
2 votes
1 answer
628 views

Chess game in Kotlin

I wrote the following Chess logic in Kotlin and am looking for feedback to make the code cleaner and follow good software design principles. I tried to adhere to object-oriented design. Some notes: • ...
Florian Walther's user avatar
4 votes
1 answer
155 views

Basic java text-based management game

In a few hours I threw together this little text-based java game. Pretty much you're managing a forest and have to try and keep it together while keeping enough of a profit to move forward. ...
CATboardBETA's user avatar
3 votes
0 answers
819 views

C# Procedural Mesh Generation Optimization

I'm making a terrain-deformation system in Unity that utilizes the common marching-cubes algorithm. So far I've gotten the system working, employed Unity's job system and burst compiler, and managed ...
Seth McCann's user avatar
4 votes
1 answer
642 views

Tile based movement game in Java 2D

Recent i started my fist "real" project. My goal is to code the first gen of Pokemon in Java. I have higly oriented my code on a YouTube viedo (https://www.youtube.com/watch?v=dEKs-3GhVKQ&...
G0ngB0ng's user avatar
1 vote
0 answers
139 views

Snake game in console

I made a snake game implementation in console with rust. Would like to hear what I'm doing wrong and what can be improved. main.rs ...
Padriton's user avatar
3 votes
1 answer
1k views

Frame Pacing and Animation in Python/tkinter

The goal of each frame of the animation to be the same length as the one before it, regardless of the amount of processing that takes place as the frame is being built. This is a little animation demo ...
codingCat's user avatar
  • 131
3 votes
2 answers
130 views

Small library for SFML to streamline program flow

For the past week or two I have been working on a small library that aims to ease development of SFML games, and after finishing it I would love to get some feedback on it. I don't have access to any ...
JensB's user avatar
  • 175
4 votes
2 answers
520 views

Simple CMD turn-based game made in C

Ive been learning c for the past few weeks, I made a simple turn-based game to show off what I know. Is there anything I can do to improve the code or make the game run better? ...
dareesome's user avatar
  • 471
2 votes
1 answer
304 views

Simple Rock Paper Scissors

I made a Rock Paper Scissors game. It works fine but I would like to know how can I improve it further. ...
MORTAL's user avatar
  • 3,278
5 votes
1 answer
309 views

Pong Game project

I tried to make a Pong game in Java. It's my first game I have ever programmed, and I would be very pleased if you would take the time to advise me on what I could do better next time. Thank you so ...
Stompk's user avatar
  • 53
2 votes
1 answer
731 views

Minesweeper in C# Console - Board Implementation

I created a simple minesweeper game in c#, and wanted to know how to improve it. I didn't really understand how to make it so everything besides the zero opens up. How would I make my class Board ...
PARTH's user avatar
  • 145
2 votes
1 answer
1k views

Ncurses Snake Game using a Linked List in C

This is a lightweight text based version of the popular game Snake written entirely in C. In order to build it, ncurses needs to be installed on the system. Navigation is done using the vim-keys and ...
Andy Sukowski-Bang's user avatar
2 votes
0 answers
265 views

How should I go about implementing rust into the unity3d engine?

Recently, I've explored using rust as a scripting language for unity. My current method involves creating a DLL from rust, and loading it into my game at runtime. It requires that the user use a ...
Dimitri Bobkov's user avatar
3 votes
2 answers
154 views

Console TicTacToe in C

Would you be so kind as to review my TicTacToe implementation I wrote in C? I wrote this blind (not looking up other implementations). You can find it on Github here. Any input and/or suggestions ...
Steffan's user avatar
  • 175
1 vote
1 answer
676 views

C# Console, Connect 4 Game

this is my second post here, and the second project I made. I wanted to know, how to improve my code of connect-4 made in c# for console. ...
PARTH's user avatar
  • 145
10 votes
3 answers
656 views

JavaScript OOD: 2048

I wrote a 2048 game in JavaScript with an object-oriented paradigm. The game board is presented with a two-dimensional array and each tile holds an integer. Here is the implementation: ...
Joji's user avatar
  • 315
0 votes
1 answer
268 views

Object-oriented Snake game

Right now I have a snake game that is working but I need a way to make my code look better and work better. A method I named GameSense is very long and I need a way ...
Mrrovy's user avatar
  • 11
4 votes
2 answers
1k views

implement the merge functionality for 2048 with JavaScript

I am trying to implement the game 2048 using JavaScript. I am using a two-dimensional array to represent the board. For each row, it is represented using an array of integers. Here I am focused on ...
Joji's user avatar
  • 315
5 votes
2 answers
138 views

Language skill tester using Pygame

I made this little game that tests our language skills. It uses one external module, pinyin, which can be installed via the command prompt command ...
Chocolate's user avatar
  • 948
2 votes
1 answer
133 views

python Repeat the Sequence

This is a game in which a sequence of 4 characters is displayed to the player, one at a time with a delay between them. Then the player must input that sequence as it was displayed. Sequences are ...
user avatar
3 votes
1 answer
240 views

Tic-tac-toe Game Optimization (C++)

I made a Tic-tac-toe game where you can play against the program or with another player in C++ and I know the code is far too long for what it is. I've tried to optimize it using non-void functions (...
oscark's user avatar
  • 31
2 votes
1 answer
372 views

Guess Number Game - Console based game using Java

This game is pretty common for beginner projects. I wrote a version of this before all in Main - so here I challenge myself to recreate it in a more OO style. I wanted to take a more OO approach, so ...
Arquile's user avatar
  • 21
5 votes
3 answers
2k views

Simple Tetris game

I made this simple Tetris game where I only have 2 blocks, the square and the line. Also the game ends after 20 blocks are created and the player wins. I was wondering how I can make it better overall....
Haku's user avatar
  • 51
1 vote
2 answers
483 views

Spawning random small cubes in a big invisible cube using Unity C#

My goal was to create a big invisible cube and inside that spawn small random cubes. These small cubes would have: A random position within the big cube. A random colour. A random size. A random ...
AaySquare's user avatar
0 votes
2 answers
786 views

Simplest possible Tic Tac Toe AI in Python

Last week I challenged myself to create the smallest possible code for a Tic Tac Toe game with an AI as opponent. Smallest possible in regards to say least number of characters used. The requirements ...
eligolf's user avatar
  • 109
5 votes
3 answers
1k views

Dwarf Fortress Clone - C++

I have written a game. Its a very simple clone of the Dwarf Fortress. The game seems to be working fine at least from my testing. I would like to improve my programming game and fix all the bad design,...
Strahinja Radman's user avatar
1 vote
0 answers
170 views

A little board game framework with MCTS AI

There are two main classes: Game and MCTSPlayer. The first one is just an abstract class with a couple of methods and some hints ...
Rennorb's user avatar
  • 121
0 votes
1 answer
94 views

Random Cave Generator Design Feedback

I am looking for feedback on my code's overall structure and design. I made a few concessions in reusability for the sake of not overcomplicating things (static/const public variables in the Game1 ...
Ovicior's user avatar
2 votes
2 answers
204 views

Create a Card game called match

For an interview, I had to create a card game called match. The rules were the following: Players can choose a number of packs of playing cards and combine them ...
user6248190's user avatar
-1 votes
1 answer
50 views

python simple 2 player tic tac toe [closed]

There are 2 issues with my code: a) If I put numbers in the following order (as my input) '1', '2', '3', '4', '5', '6', '7' -- this where the game should end, because X (or O) would have won now (...
fast_and_curious's user avatar
2 votes
1 answer
209 views

Simple text adventure engine built in electron

I'm working on making a text adventure using Electron. I have the basics of the engine working, you can walk around an infinite map. Maps contain things, and you can enter a few basic commands. I'm ...
Julian Lachniet's user avatar
7 votes
3 answers
165 views

JS function to initialize properties

I have some JavaScript code to manage a 2D map in a game. I have a function to create a new room in the map which is at map[x][y]. I need to create that property ...
Julian Lachniet's user avatar
3 votes
2 answers
629 views

Python word guessing game

...
Rabeea Rehman's user avatar
13 votes
7 answers
2k views

A binary 3D model format for a game

I've recently started working on my own game engine and I have been thinking about creating my own model format. Since text usually takes a long time to load and process I decided to make a binary ...
Leocat's user avatar
  • 135
1 vote
1 answer
588 views

Text-based console game

I'm currently learning C# in hopes of making games on my own using Unity. I'm using the Udemy class by Denis Panjuta and followed 8 sections before making my first app by myself. The 8 sections ...
Antoine Sabourin's user avatar
3 votes
2 answers
332 views

Event Messenger C++ Game Programming

I'm using this Game Messenger as an instant messaging tool in my game. Just wondering peoples on thoughts on it. Thank you! ...
Ryan Swann's user avatar
3 votes
1 answer
2k views

Python Beginner - Basic Hangman Game Using Turtle

I built upon a previous beginners' class' hangman game to do graphics with Turtle. It should work with any .txt list of words in whatever location you specify at the top of the code (in my case on ...
DiogenesOfMiami's user avatar
5 votes
1 answer
127 views

Tic Tac Toe Shared Keyboard Game

I wrote a Tic-Tac-Toe game for two players, where each player uses the same keyboard. It's not a school project or anything, I just thought this would be fun to code for practice. I'm open to and ...
mastmartelli's user avatar
3 votes
1 answer
86 views

Online implementation of the game "Compatibility"

This is an online implementation of a game: Compatibility. You can find the rules here. The idea is to have a browser that perform all the game's mechanics and to discuss with your friends through a ...
Pierre's user avatar
  • 245
4 votes
1 answer
177 views

Tic Tac Toe using the __init__ constructor

I recently learned about classes in python. I only have a brief understanding of them, but I think it's good enough for me to write a tic tac toe program (been ...
esker-luminous's user avatar
3 votes
2 answers
985 views

Hangman Game with Python

I'm super excited to share my hangman game with you. (haven't added the graphics yet...) I will be using this program as my final project (for school), but I would like to have this polished before ...
esker-luminous's user avatar
0 votes
2 answers
561 views

Random Number Guessing Game Code Efficiency - Python

UPDATE: I have added: a play-again option score keeping thing difficulty levels **(but I still need help with the functions part). I don't feel it's necessary to explain what my code does, as it is ...
fast_and_curious's user avatar
2 votes
1 answer
145 views

Unity animations code [closed]

I'm currently working on a live keyboard demo on unity. I've animated every key but my script spans over 2000 lines. I'm fairly happy with my script but I know theres better ways to do it. I have ...
Kemura's user avatar
  • 47
8 votes
1 answer
1k views

C++ Event System - Game Engine

Introduction I have just started learning templates and experimenting with function pointers. I wanted to create an event system that met a couple of goals: Event types are PODs, and do not inherit ...
kainev's user avatar
  • 301
4 votes
0 answers
94 views

2048 in Matplotlib

I did an OOP to make 2048 using Matplotlib visualization. The color dictionary is for setting different colors to each number in the game. There are two classes ...
Redsbefall's user avatar
  • 1,132
2 votes
2 answers
149 views

Xs and Os game logic in Java [closed]

I am practicing programing in Java. I have started to make a Xs and Os (Tic-Tac-Toe) game and I began with baseline logic of the game. I would appreciate any advice on my programming style, what am I ...
Zoran Jankov's user avatar
4 votes
1 answer
406 views

Tic Tac Toe game in Python - Beginner

I'm a beginner to python and as part of my course I'm instructed to create a simple tic tac toe game. I'd be very appreciative and interested of any insight, criticism, instructions, best practices or ...
MenaK's user avatar
  • 43

1
3 4
5
6 7
39