Questions tagged [game]
For questions requesting reviews of game development code.
109
questions with no upvoted or accepted answers
24
votes
0
answers
415
views
Rubik's cube mode for emacs
Following is a dumb implementation of Rubik's cube for Emacs. I am not well versed in writing (e)lisp, so I ask for a review and corrections.
...
18
votes
0
answers
370
views
Modularizing a Game Scene in Sprite Kit
I am trying to modularize the main SKScene of my strategy game. I am not sure that my approach is correct so I would love to get a review of the following code.
...
10
votes
0
answers
2k
views
Geode Contents Predictor StardewValley Mod
The goal
I really enjoy the game Stardew Valley. One of the things that the game has are geodes. Much like real-world geodes, these geodes can be cracked open, and you can find some fun things inside....
9
votes
0
answers
533
views
Hunt the Wumpus GUI (FLTK)
I used the code from the text based hunt the wumpus game discussed here: Text based game “Hunt the Wumpus” Version 3 to create a gui Version based on excercises from PPP by Stroustrup.
For the GUI i ...
8
votes
0
answers
552
views
Simple, intuitive and (hopefully) safe EventDispatcher
For my own game engine I need an event system. I tried to avoid the single-huge-enum-approach for minimizing compile times.
The BasicEventListener is the (...
6
votes
0
answers
153
views
Game event loop for multi-threaded application
My take on this problem for a hobby project.
I have an event loop that advances game state and processes user input.
Rendering is no concern of this event loop, and is intended to run on a separate ...
6
votes
0
answers
125
views
Connect Four implemented via smart contract
I'm learning Solidity development, so I decided that Connect Four would be a fun side-project to work on.
Here's the current flow:
A user creates a new game and sends ether to the contract, then ...
6
votes
0
answers
80
views
Pyspark Solver for Tiered Board Games
I've written a Pyspark program that will completely solve a tiered board game (no loops, each game position is a member of only one tier) and writes each tier to a file. It also determines the ...
6
votes
0
answers
378
views
Pong game built on a minimal entity component system
This simple game is built on the ECS described here: Minimal entity component system, take 2
...
5
votes
0
answers
220
views
GUI Tic-Tac-Toe game with six AI players - part 1: the UI
This is a huge project that I have worked on for the past few months, it contains 16 scripts, one of the scripts is used to analyze the other scripts. There are 111004 characters in all the script ...
5
votes
0
answers
213
views
Text-based tic-tac-toe game in Python
I'm working on a text-based tic-tac-toe game, mostly for fun and because I'm learning programming. I would appreciate any comments you could give me to improve it.
Main structure:
Uses a Board class ...
5
votes
0
answers
1k
views
Mahjong hand completeness checking algorithm
As a summer project, I have been working on a small-scale, console-based version of Mahjong (the Rummy-like hand completion game, and not the solitaire version). While having prior knowledge of the ...
5
votes
0
answers
151
views
Prototype GameManager for game written in Unity
I am self taught, so I'm consistently seeking ways to code better, and more efficiently. If anyone has the time, please advise me on what can be done better with explanations as to why the old method ...
5
votes
0
answers
1k
views
Game involving catching falling items
This is my first game. Everything in the game was created by me during this week - from assets, music and, of course, code.
As I am new to Python I have wondered if the design template for this game ...
5
votes
0
answers
280
views
ATB strategy MVC architecture refactoring
NOTE: this question isn't as long as it appears to be. I added the comments to the code only to answer some possible questions that may appear.
I'm making an active time battle strategy. Its ...
5
votes
0
answers
237
views
Spacial hashing Library
Old code
...
5
votes
0
answers
270
views
2D Game - Ray-cast collision handling
This code is an excerpt from an infinite platformer I'm working on for fun.
It belongs to the class GameObject from which every object i.e platforms, player, ...
5
votes
0
answers
82
views
Node that makes bots jump with weapon thrust
Today I decided to continue working on a UnrealScript (Unreal Engine 1) class that lets bots jump onto ledges by firing weapons beneath themselves.
(The only problem is that they don't aim and jump ...
5
votes
0
answers
87
views
Moves box in direction of touch, and has wraparound when reaching edge of screen
Part of me thinks that it would be simpler to ditch Apple's move API and just updated position with a timer. I know that's what I did with a JS canvas snake game I built a while ago. But I'm also ...
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 ...
4
votes
0
answers
362
views
Simple target shooter game using Windows Forms
Currently, my game is a basic target shooting game.
The targets rise to the top, if the target reaches the top an end screen is shown.
If you shoot a target you get more score, and the speed in which ...
4
votes
0
answers
96
views
Game clock with configurable rate
Edit: Licensed source can be found here.
The intent behind this class is to allow different game systems to run at their own clock rate. The physics integration rate should not be connected to the ...
4
votes
0
answers
353
views
Central class for SFML game engine
I have worked on a SFML Game/Game-Engine Project for 2 months now and am looking for some feedback in terms of...
Is this a valid approach for a Game class?
Are there any glaring C++ coding practice ...
4
votes
0
answers
566
views
Pentominoes in Python
I'm currently coding a game of Pentominoes and I would like to hear suggestions on how to improve my code and make it more pythonic.
Rules and goal of the game
There is an 8x8 grid and you have 12 ...
4
votes
0
answers
341
views
Code efficiency check for hangman in Delphi
I recently coded a game of hangman and wanted to know,
A: Are there any places it could be more efficient?
B: Are there any things that are distinctly wrong with it, since I know people seem to say ...
4
votes
0
answers
64
views
Time travelling through state history with persistent consequences
I am working on a game written in Kotlin that has a state management system similar to Redux. The state of the game is kept in a single place and is represented as immutable data classes (no logic). ...
4
votes
0
answers
90
views
AttackController for enemy in 2D Game
I am developing a little 2D sidescroll shooter game. Currently I am working on the basic enemies.
For that purpose I developed a component which will spawn shots directed torwards the enemy. The ...
4
votes
0
answers
230
views
Ten Thousand: a dice game for multiple players v0.3
I've learned so much, how could I not come back for more?
I think this is much improved. The only thing I have not implemented from Ten Thousand: a dice game for multiple players - follow-up is ...
4
votes
0
answers
181
views
Attempt at Idiomatic Hangman in Clojure
I am pretty new to Clojure & am loving it so far. After going through a few resources, I decided to make a hangman game.
I'm wondering how idiomatic is my code & where can I improve it ...
4
votes
0
answers
655
views
A simple tron clone
I wrote a simple tron clone in C++ and would appreciate some feedback.
The pixelutility.h isn't included on purpose. Feel free to reuse the code where ever you want (It shouldn't be much effort to ...
4
votes
0
answers
83
views
Comparison of sprite movement implementations
I've come up with two ways to do sprite movement with CreateJS, and I'm wondering if one is better than the other as far as performance and maintainability.
The player data is saved in a json file ...
3
votes
0
answers
77
views
Re: C++ 4X Game
This post is regarding the revamp of this post/project I did about 8 months ago. I took a lot of the advice from the suggestions provided (thank you by the way), and fixed the project up, so I'm ...
3
votes
0
answers
244
views
Generic Monte Carlo Tree Search implementation in Rust
I'm working on a project where I need a strong AI for a combinatoric game, and decided to go with Monte Carlo Tree Search because the specific game will be original to the project - no good heuristics ...
3
votes
0
answers
49
views
song guessing game with hashing
I have created a CLI python game that allows for the creation of local accounts and the data is stored in local .csv files. The passwords are hashed so can be stored securely. It keeps track of the ...
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 ...
3
votes
0
answers
128
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 ...
3
votes
0
answers
817
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 ...
3
votes
0
answers
138
views
Custom allocator for improved cache locality and fast iteration in C++
I am writing a custom allocator for my educational game engine project where I need to iterate through a collection of components(similar to Unity3D) every frame. There are game objects and every game ...
3
votes
0
answers
141
views
HSL Guessing Game in Svelte
The objective of the game is to guess the hue, saturation, and lightness values of a given color swatch across ten rounds.
https://github.com/shreyasminocha/guess-the-hsl
https://guess-the-hsl.now.sh
...
3
votes
0
answers
409
views
Clean and fast MiniMax for numpy implementation of Tic-Tac-Toe
Tic-tac-toe is small enough to be solved completely but since I have a slow computer and this is an interesting exercise, I want to build the fastest possible minimax tic-tac-toe implementation in ...
3
votes
0
answers
79
views
First Attempt at Object-Oriented Programming: Tic-Tac-Toe
Began learning python about 3 months ago and this was my first OOP. I was hoping to get constructive feedback! My own thoughts after writing it were that there had to be a better way to: 1) generate ...
3
votes
0
answers
900
views
Object Oriented Chess Design In Kotlin
I know there's a similar question to this: See here.
And I have taken the points mentioned there into consideration. However, I wanted to learn Kotlin and thought of writing OOP based Chess myself.
...
3
votes
0
answers
1k
views
Java implementation of Spider Solitaire
I recently cloned a classical Spider Solitaire game from Microsoft Windows XP. I implemented almost all features of the game. Please tell me anything I can do in order to improve my coding style. ...
3
votes
0
answers
277
views
Implementing a tic tac toe board in python
This is my attempt at making a class to represent a game board for tic tac toe. I normally hate while loops but I used one because I cant seem to make the ...
3
votes
0
answers
137
views
Java game: select numbered tiles to form a goal sum
This is a homework project (Soft. Eng.) which I have completed. My teacher gave me a 91, but I am unhappy with this grade because my code is quite messy. (Please excuse incomplete Javadoc, the code is ...
3
votes
0
answers
118
views
Vocabulary memory game in Haskell
As a beginner I try to implement a vokable memory game. It is still missing some feature (Loading, Display), but I would like to hear how to improve what is already there.
The user should identify ...
3
votes
0
answers
84
views
Probability shooting game
I've been working on this probability game that has a gun with 5/6
bullets. When there's a dodge the game removes a bullet and then the
game continues, the goal being to get to 0 bullets.
I don't ...
3
votes
0
answers
797
views
OOP Othello in Python with tkinter UI and basic AI
I wrote an Othello version with limited UI to try to learn python(3.7) and OOP.
The game has 8 classes.
Start creates a controller object which is responsible for the logical flow of the game. ...
3
votes
0
answers
41
views
The Beginnings of a HexCells Editor
This is my first foray into a full TypeScript program, and one I decided to do for fun and without the aid of jQuery. It is also my first time developing with the HTML canvas. That's quite a lot of ...
3
votes
0
answers
2k
views