Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
3
votes
1answer
64 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&...
3
votes
1answer
31 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 ...
1
vote
0answers
18 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 ...
3
votes
2answers
87 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 ...
4
votes
2answers
63 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? ...
2
votes
1answer
51 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 ...
5
votes
1answer
88 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 ...
2
votes
1answer
104 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 ...
6
votes
3answers
5k views

Hangman in Python

I created this version of Hangman in Python 3. Does anyone have any tips for optimization or improvement? ...
2
votes
0answers
49 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 ...
7
votes
3answers
146 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: ...
8
votes
1answer
178 views

Console arkanoid in C

On an Internet forum a person came with their homework, to write Arkanoid in a console - it seemed they wanted someone to do their homework for them so I did not respond. However, I found the task ...
1
vote
0answers
34 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 ...
0
votes
0answers
65 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. ...
0
votes
1answer
78 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 ...
4
votes
2answers
155 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 ...
0
votes
1answer
178 views

Random-number-guessing game as a batch script

I made a little gambling batch file and wanted to know if there was a better way to do the randomization and the checker. ...
6
votes
3answers
7k views

Python colour game

This is a Python program that requires the user to type the colour of the text and not the name of the colour. They have a set time limit and a scoring system. If you have any improvements or ...
12
votes
2answers
8k views

2D Collision Detection

I wrote this a while ago but wanted to see if I went about it the right way and if my brain is working correctly. I was thinking about these two projects the other day and I recently released the ...
4
votes
2answers
101 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 ...
5
votes
1answer
916 views

Codecademy BlackJack project

I've put in quite a bit of hours on this BlackJack project for Codecademy to get it to the point where I'm satisfied with it. Before I move on to create the UI for it I would really appreciate ...
2
votes
1answer
40 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 ...
3
votes
1answer
89 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 (...
1
vote
2answers
80 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 ...
2
votes
1answer
56 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 ...
5
votes
3answers
697 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....
1
vote
2answers
73 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 ...
6
votes
3answers
203 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,...
1
vote
1answer
99 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 ...
5
votes
1answer
69 views

A* and ALT pathfinding in C tips

I adding some pathfinding to a game I'm working on. It primarily used A* with as suggested in the pathfinding articles at reb blob games. It works, but isn't very fast. It is a square grid map that (...
0
votes
1answer
68 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 ...
2
votes
0answers
31 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 ...
2
votes
1answer
93 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 ...
2
votes
1answer
66 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 ...
-1
votes
1answer
29 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 (...
15
votes
2answers
14k views

Simple Tic-Tac-Toe PHP/Pure HTML

I've been doing a simple Tic-Tac-Toe with PHP, generating only HTML code. A few notes: I didn't bother yet to give an AI to the opponents (the Os), and it is intentional. There is no CSS style to ...
5
votes
3answers
72 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 ...
3
votes
2answers
303 views

Python word guessing game

...
1
vote
1answer
72 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 ...
12
votes
7answers
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 ...
3
votes
1answer
84 views

Learning javascript by developing a simple game

I am learning javascript and have developed a car game using: HTML Canvas javascript The repository link is: https://github.com/lazycoder-007/car_race_html_javascript_game The code is given below: ...
2
votes
2answers
111 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! ...
3
votes
1answer
109 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 ...
5
votes
1answer
82 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 ...
3
votes
1answer
66 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 ...
2
votes
1answer
81 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 ...
3
votes
2answers
216 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 ...
0
votes
2answers
100 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 ...
7
votes
0answers
128 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 ...
11
votes
8answers
3k views

OOP implementation of Rock Paper Scissors game logic in Java

What is your opinion on my solution for Rock Paper Scissors game logic in Java? Round outcome enum class ...

1
2 3 4 5
35