Questions tagged [game]
For questions requesting reviews of game development code.
1,976
questions
4
votes
5
answers
874
views
Creating Layout of 2D Board game
I am quite new to c, and I'm trying to get better in it.
I want to create a simple snake & ladder game.
I achieved the layout of the board that I wanted, but I'm not sure if this is really an ...
4
votes
3
answers
185
views
Gomoku game 5 in a row. Javascript simple game Canvas
Gomoku ★★★ (Tic Tac Toe)
There are many Gomoku (5 in a row) game projects on the Internet.
The scripts of these projects are freely available. Having analyzed them, I created my own
game code based on ...
4
votes
1
answer
243
views
Tic-Tac-Toe Console Game in Java
I recently started learning Java and decided to create a project to practice. I developed a console-based tic-tac-toe game. I also wrote tests for some of the classes, not because they were necessary, ...
6
votes
4
answers
165
views
Deck Value Bet-Like Game
I have just gotten into Object Oriented Programming and I've been practicing it through Python. But I think I still haven't clearly grasped how it should be used effectively. I've created a game Using ...
4
votes
1
answer
354
views
Tic Tac Toe with only the 3 last moves
I wrote a Tic-Tac-Toe game that unlike the normal TTT only saves the last 3 moves. That means, that the first move will be removed on the 4th move and so on.
To not necessarily extend the description ...
9
votes
7
answers
1k
views
Rudimentary black jack game implementation
I started the 100 Days of Code: The Complete Python Bootcamp about a week ago. I finished day 11, and I wrote a rudimentary blackjack game. I'm just looking for some advise on how I did.
Am I showing ...
3
votes
1
answer
93
views
another first tic-tac-toe game
I made this tic-tac-toe game in c# after learning the language around a week ago. Can somebody tell me if this code is good or bad?
...
6
votes
3
answers
903
views
A chess engine in Java: generating white pawn moves - take II
Intro
This post continues the A chess engine in Java: generating white pawn moves.
I was advised to choose between efficiency and type safety. Since this is my first attempt at a chess engine, I have ...
9
votes
4
answers
2k
views
A chess engine in Java: generating white pawn moves
(This post has now a continuation.)
I decided to embark on implementing my own chess engine. The first (and perhaps most demanding) part of that endeavour is generating child states out of a given ...
2
votes
0
answers
34
views
Tic Tac Toe CLI in Clojure
I wrote a command line tic tac toe game in Clojure. I've broken this post into three sections: Feedback Requests, Gameplay, and Code
Feedback Requests
I'm looking for feedback on:
How "idiomatic&...
2
votes
2
answers
141
views
"Element Fusion" game where 2048 meets Chemistry
I've developed "Element Fusion," a PyGame-based game inspired by 2048 but using chemical elements. I'm seeking feedback on:
Gameplay mechanics
Code structure and efficiency
PyGame ...
1
vote
0
answers
54
views
Principal Variation Search (PVS) for playing Connect Four in Java
This time, I have an implementation of PVS (Principal Variation Search) algorithm for playing the game of Connect Four.
The repository holding the above .java file ...
3
votes
2
answers
168
views
First tic tac toe game. want to see if valid or needs improvement
Just finished my first java class that taught me all the way up to oop and abstract classes. Decided to start some projects over the summer. Started with tic tac toe since it sounded fairly easy to do....
1
vote
3
answers
80
views
Dice evaluation in a Yahtzee-type game
I just started using Godot, and I am attempting to build a Yahtzee-type game on my own. I created a function to evaluate the dice/roll and have it working correctly, I believe. I was hoping to get ...
6
votes
2
answers
429
views
Family, felon & fuzz River Crossing challenge
I first saw this challenge when a user posted it to SO about two years ago without a shred of code.
The post's plea, "How do I get started?" meant the user's post didn't survive long on that ...
4
votes
1
answer
92
views
Multithreaded Alpha-beta pruning for playing Connect Four in Java
Intro
(The entire repository is in GitHub.)
This time, I have parallelized the famous Alpha-beta pruning algorithm. The idea is that the parallel algorithm descends in a game tree (at least) 2 levels ...
4
votes
3
answers
277
views
Connect4.java - The Connect Four game against an Alpha-beta pruning -based AI bot
I have this GitHub repository. It implements the command-line version of the Connect Four game. The AI bot is implemented via Alpha-beta pruning.
Code
...
8
votes
4
answers
604
views
DIY Sudoku Solver (Windows Console App)
This will be somewhat larger than many Code Review posts.
In a recent CR thread, an invitation was extended for me to post my DIY Sudoku solver.
For the fun of it, here we are... I'm buzzing with ...
6
votes
1
answer
397
views
Tic Tac Toe Basic C implementation
Is my implementation idiomatic?
Does it suffer from any undefined behaviour?
Any pointers/tips would be greatly appreciated. Particularly, I think that the winner function could be improved.
...
4
votes
1
answer
94
views
rock paper scissors game in console
I've made a simple rock paper scissors game using javascript. Any feedback appreciated. This is a first project I've done with almost no help
...
3
votes
3
answers
866
views
Basic python rock papers scissors game (first code)
I'd just appreciate if anyone can suggest some incremental improvements that would help me to think better like a coder.
Here is the very basic RPS (rock, paper, scissors).
One thing I may next add is ...
2
votes
2
answers
143
views
BlackJack in python
I began creating blackjack in python; however, I'm looking to simulate it, so I'm thinking I'm going to need to optimize it so that I don't just leave my computer running for three hours waiting for ...
1
vote
1
answer
153
views
Dial up some obscure stats for the Chutes and Ladders game
Years ago, I wrote some code in Perl
for the Chutes and Ladders game. I re-wrote the code here in Python.
The code simulates one player in a game to see how many spins of the dial
are needed to win ...
18
votes
3
answers
3k
views
A tic-tac-toe game in C
I am (trying) to learn the C programming language for fun with my father's book "The C Programming Language". I tried writing a tic-tac-toe game in C. I have no professional experience, so ...
2
votes
1
answer
127
views
2D tile map game: Calculate room tiles a furniture item was placed at
I'm developing for a 2D tile map game. I'm trying to generate a list of tiles a furniture item has been placed at, also supporting multi tile furniture that cover more than one tile.
I've written a ...
3
votes
0
answers
86
views
Text-Based Multiplayer RPG Engine using Flask & React
As a final project for a software engineering bootcamp, I decided to make a text-based multiplayer RPG game engine. Using Python, Flask, & Flask-SocketIO for the backend and React & TypeScript ...
2
votes
1
answer
63
views
Text-based tic-tac-toe in bash (continued)
I wrote this two-player tic-tac-toe program in bash. To make a move, you enter a number between 1 and 9 which corresponds to the square:
...
3
votes
2
answers
287
views
Text-based blackjack in python
This is code for a text-based game of Blackjack.
I would also like advice on how can I implement a betting system in this program. For example starting with an amount of chips and choosing how much of ...
12
votes
2
answers
1k
views
Space shooter game using pygame
I have made a space shooter game in pygame with over 800 lines of code (including blank lines). The aim of the game is to kill all of the ships in the game. You start with a small spaceship and one ...
6
votes
1
answer
179
views
Text based tic-tac-toe in bash
I wrote this two player tic-tac-toe program in bash. To make a move you enter a number between 0 and 8 which corresponds to the square:
0|1|2
3|4|5
6|7|8
This is ...
1
vote
0
answers
57
views
WikiGameKillerFX.java - a JavaFX GUI program for solving the Wiki Game instances
I have this GitHub repository. In Wiki Game, players agree on random source and target articles, and attempt to navigate from the source to the target using least number of links. If there is a tie, ...
-1
votes
1
answer
86
views
Sine function guessing cognitive app
Please help with improving this application. It is a guessing game, for learning the values of the sine function, and boosting brain power in the process.
...
2
votes
2
answers
337
views
Minimal AlphaGo algorithm implementation for game 2048, connect4
I'm writing tutorial code to help high school students understand the MuZero algorithm. There are two main requirements for this code.
The code needs to be simple and easy for any student to ...
1
vote
0
answers
68
views
WikiGameKiller.java - a program for solving Wiki game instances
Intro
I have this GitHub repository. Basically, it is a command-line utility for searching automatically for shortest link paths in the Wikipedia article graph.
The game in question is sometimes ...
7
votes
1
answer
1k
views
Python Breakout game
I came from C# background with strong OOP approach. I've decided to learn Python and Breakout game is a way to cover the basics of Python.
I'll be really glad for any feedback and general opinion ...
4
votes
1
answer
91
views
Terminal based game: Part 2
Follow up to: Terminal based game
Finished up the framework.
Still sticking with the X-Term based version.
As I want a very simple framework to use for teaching (not this part initially).
But my next ...
6
votes
2
answers
2k
views
Terminal based game
Looking to build a terminal based game.
I am assuming X-Term like terminal.
This means:
I can use the X-Term control codes to clear and move around the screen.
I can use ...
5
votes
2
answers
235
views
2048 game in Java
I am a beginner learning Java, and I coded a command line version of the game 2048 for practice. Any feedback, especially regarding best practices, object-oriented principles, and tidying up the code ...
9
votes
2
answers
1k
views
Text Game project for IT 140
So this is my first time taking a coding class. It's my second project for my IT140 class and I am making a text based game. This is my code so far. I do have a warning on Pycharm for
Shadows name <...
3
votes
2
answers
174
views
Rock, paper, and scissors C++
Could you give me your opinion about this simple rock, paper, and scissors game code and tell me tips to improve this code?
...
2
votes
0
answers
181
views
Optimizing Performance of SAT Collisions
I've implemented a Collison Manager using the Separating Axis Theorem (SAT), and I'm looking for suggestions to enhance the performance of the Minimum Translation Vector (MTV) calculation. The ...
6
votes
1
answer
147
views
Code for a basic dodging game in Python
Can someone review the code for this dodging game I made a while back? I want to see if there are any improvements or optimizations I can make as I am more or less a Python beginner.
...
3
votes
1
answer
111
views
C++ OpenGL Game Engine
I am currently developing a C++ OpenGL game engine to help myself learn computer graphics and game design later on. However, this project is becoming really big, and I am unsure if I am making the ...
3
votes
2
answers
117
views
Text based Java game "Battle Arena"
This is my first java program. I'm coming from a python background. This is a text based combat arena game.
Are there any ways I could better implement the overall code structure?
How might I improve ...
3
votes
2
answers
123
views
Simple Blackjack game with card art
I have reached a point in my course that I feel I could use some feedback as to how my code looks and hopefully some direction on some best practice methodology going forward. I know I have a long way ...
14
votes
1
answer
1k
views
Text-mode 2048 in Python (using numpy)
Good evening. I am studying mathematics at the moment, so I have little to no formal education in actual computer engineering. However, I am trying my hands at learning Python because I will need lots ...
0
votes
0
answers
46
views
Video Poker with luck modifier
While grinding for coins on the GTA San Andreas casino poker machines I started to
wonder how exactly one might implement a luck modifier to a video poker game without
it being completely obvious to ...
2
votes
3
answers
143
views
Othello (Reversi) in C++17 and CMake
Othello is a two-player strategy game typically played over the board.
I implemented Othello in C++17 with CMake as the build system. I'm looking for feedback on cleanness, readability, and ...
3
votes
1
answer
235
views
Simple blackjack program in Java
I wrote this blackjack game for my APCSA class (already submitted) and was wondering if anyone had feedback on what parts of it are improperly written. My main concern is the fact that I am printing ...
4
votes
0
answers
91
views
Complete html5 platform game as a snippet
I made a complete little platformer game as a code snippet.
The goal is to try to keep jumping on the enemies without touching the ground to increase score.
I used Tad's Basic Game Objects, an open ...