Questions tagged [game]

For questions requesting reviews of game development code.

102 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
145 views

Space shooter game in TypeScript

I recently started learning TypeScript and created a small space shooter. I would like to get some feedback on the structure of my code. I have some classes with both static and instance methods with ...
3
votes
0answers
53 views

Designing a system to apply multiple effects to one or multiple targets

I posted this on SO first, but was redirected here, since the code below already works: I'm currently trying to develop a small game as a hobby project, which contains an automated combat system ...
3
votes
0answers
76 views

Simple Number Game with AI

I have created a simple game and AI in Python. Rules of the game: There are 11 spaces for digits, 9 that are used and 2 that are discarded On each turn, a digit (0 - 9) is chosen and placed in a ...
3
votes
0answers
486 views

Java Pong Game Using Swing

I've written a Pong game in Java using the Swing library, and while the code works, the ball seems to lag across the screen. Perhaps my code is inefficient. I've included only the Board class because ...
3
votes
0answers
587 views

Ship capt crew dice game

I built this game that I used to play at family get-togethers. I am still working on the final implementation of how to actually play someone in the game. Please critique the main logic of the dice ...
3
votes
0answers
101 views

Maze player model view and controller

This is the player view model and controller for human player using a keyboard (easily extendable for over the network / split screen mode). The AI controller is posted in another post I've made ...
3
votes
0answers
363 views

ThreeJS State Object

state object - a state or scene from the game. When the start function is called, the state starts rendering, shutting down any other state using the renderer, and calling the specified functions (...
2
votes
0answers
64 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 ...
2
votes
0answers
32 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
0answers
73 views

Candy Land in Haskell

I tried to write Candy Land game in Haskell as a step to work on something bigger than those toy programs/functions I used to write. I wrote myself a python version first, with a functional mindset ...
2
votes
0answers
212 views

Python code for UNO Game

It's my first time here, so please accept my apologies in advance if something is wrong with my approach to asking. I've been learning Python for a couple of months and I decided to have a go at a ...
2
votes
0answers
161 views

Strip Poker game

I've made a short simple strip poker game. It follows the traditional rules of poker (4 of a kind>flush>straight,etc.), one round of betting followed by an option to change cards, then another ...
2
votes
0answers
99 views

Text-Based Pokemon Battling Simulator

How can I improve the visual appeal Of My text-based Pokemon battling simulator? I created a Pokemon battling simulator in C++. I showed it to my mom, dad, and brother, and they didn't say anything ...
2
votes
0answers
107 views

Flashcard app in Golang

Most of my development experience is in the .NET world. I started learning Golang again a few months ago, and decided to build a super simple flashcard app. This project was mainly to get used to ...
2
votes
0answers
1k views

Snake Game for Raspberry Pi Sense HAT written in Python

Goals learn Python improve problem-solving skills improve my coding style Hardware This code runs on a Raspberry Pi 3 Model B (Raspbian OS) in combination with the Sense HAT. The 8x8 LED-Matrix on ...
2
votes
0answers
80 views

Game involving finding words containing letters from a memorized list

I wrote this Java game where the user memorizes a list, gets given letters and needs to find a word that contains those letters. The player has only a few seconds to enter the word. Example: Program ...
2
votes
0answers
586 views

Simple Flappy Bird Clone using Kivy (with very minimum physics)

This is a very simple clone of Flappy Bird using Kivy, to be used for programming class for teens. The game consists of 3 classes: Bird, ...
2
votes
0answers
84 views

C#: Foreach vs Seperate Threads?

Each 'Room' class instance needs to call the method 'ProcessRoom'. I am currently overthinking something and would like another persons opinion. One of the constant things here is ProcessRoom gets ...
2
votes
0answers
812 views

Moving a player through a textual maze

I did this to practice a bit without thinking about optimization due to simplicity of this progam. It's a "maze game", the player is P and can step into the M by pressing Arrows on the Keyboard. At ...
2
votes
0answers
70 views

Don't Update Every AI Every Tick

In my game there are AI characters that try to either steal your gold or destroy the walls of your castle. Previously I simply updated them all every second, but with a large number of characters on ...
2
votes
0answers
490 views

JavaFX Kings Game

I am working with javafx making a simple Kings game. I am currently in a Java course at school and this is just a side project I am looking to get some feedback on. Main.java ...
2
votes
0answers
583 views

C++ Snake Object-Oriented

So I've made a snake game with object-oriented approach. I would be glad if you could take a look at the code and give me any advices/tips/point out errors/etc. :) main.cpp: ...
2
votes
0answers
72 views

Lcation of redux “random” state initialization

I'm creating 2048 to practice React/Redux. I've got a game board that appropriately shifts, and follows the game rules (it works). I'm more concerned with my understanding of handling Redux reducers (...
2
votes
0answers
138 views

Ruby - Asteroids Remake

After some feedback on my last Ruby Code I decided to start another one with two big concerns in mind: Trying to adequate my coding to the OOP paradigm Trying to follow the Ruby Style-Guideliness I ...
2
votes
0answers
82 views

Karma Sutra Game Version 2.0

I have refactored the code for this game thanks to some great suggestions from woxxom Now, once again, any suggestions still welcome. I am going to be improving the UX as a next phase (giving hints ...
2
votes
0answers
5k views

Example of PyQt5 Snake game

1) This a follow-up question to Example of PyQt5 simple turn-based game code 2) After improvement I edited original code to create snake clone game, which is real-time (or pseudo real-time) and it is ...
2
votes
0answers
97 views

Getting UI Buttons to move across the screen for a nice effect using HaxeFlixel

I'll start off by saying I'm way off in how this should be done. After spending much time on getting this to be clean it wasn't going to happen so I just did it anyway I could. I'm trying to make ...
2
votes
0answers
317 views

Beginner grid-based game movement engine (PART 2)

I've tried to make the code overall more PEP-8 friendly and added more comments to make it more readable. Added some new functions and methods like ranged attack and allegiance. Play around with it. ...
2
votes
0answers
2k views

Python pyautogui used for a 2D game

I want to post my tiny program here and hope to get feedback improving the performance of my code and understanding Python better. My main issue is the slowness of the program and the corresponding ...
2
votes
0answers
2k views

Breakout-Clone built in SFML

After reading the SFML Game Development book, I decided to put what was learned to the test by creating a simple Breakout clone. I have posted the source code to GitHub: https://github.com/andrewd440/...
1
vote
0answers
42 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 ...
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 ...
1
vote
0answers
49 views

ReadAsync: Continuously reads stream and spits out Packets and Fill incomplete Packets

I have difficulties when sometimes a game client sends a list of packet in the same buffer, where it is split before processing. The biggest problem is when any packets don't come complete. For ...
1
vote
0answers
37 views

Questions about class structure, inheritance, etc — Simple Rougelike in JS

I have built a small roguelike in JS using minimal frameworks (Tho I am using one library for things like FOV, map generation and a few other small things) This is my first 'real' project that was ...
1
vote
0answers
46 views

X in a Line Console Game - Python OOP

Please could you review my code below? The game is similar to "Connect 4", but I haven't implemented diagonal checking for wins. In particular I'm interested in my use of OOP. E.g. My choice of ...
1
vote
0answers
3k views

Card Game using pygame module

I implemented a card game using pygame, the game is a game of war and using png files that I made in Microsoft paint. I tried to keep the object classes as separated from the pygame module as possible....
1
vote
0answers
153 views

Chess Agent using reinforcement learning with monte carlo tree search

I wanted to ask if this project is valid to state on a resume for entry-level python developer and if the code is presentable to say a job interviewer. github link: full project (If this is not the ...
1
vote
0answers
230 views

21 Game (Nim) as Finite State Machine in Python

Feedback from previous posts of mine suggested that my approach to states was haphazard, which is not surprising since I hadn't really thought of games in terms of states before. I have since gone off ...
1
vote
0answers
75 views

selecting 5 best players out of 2 team

Let us assume that we need to develop an application which can select best 11 players to score maximum points. The application will select the best players after completion of a match. The rules are ...
1
vote
0answers
151 views

Prototype of an idle game (very early, but you can try it)

I am currently fiddling with ClojureScript and Reagent, and I'm trying my hands at an Idle game. I'm somewhat familiar with FP, and pretty new to Clojure/ClojureScript and Reagent/React. I'd like a ...
1
vote
0answers
70 views

Task/Thread/Timer Dilema

I'm looking to improve the performance, quality and effiency of the following code. I have a server I use for my game that manages all the players connected plus a few other things, which have Manager ...
1
vote
0answers
373 views

Core of a text based game displaying graphics in pygame

I'm working on a silly personal project, - a text based game with minimal graphics such as characters (people, not the text), enemies, gear, little effects. But the core of the game is the text and ...
1
vote
0answers
174 views

Builder design pattern attempt

I am going over a series of design patterns and I like you to verify that I implemented it properly. The code works. It is not a homework assignment. Checking for null pointers is omitted for ...
1
vote
0answers
130 views

Thread safe scene graph

Below is my implementation of a thread safe scene graph; I'd love some feedback, especially regarding safety and efficiency. The key pieces are deferring node deletion until a single threaded portion ...
1
vote
0answers
87 views

custom hash table<K,T> that take responsibility to assign hashcode/index

Introduction I try to create a game engine with component-based architecture. There are many type game components and different game systems. For example, the components can be Com_HP (health), ...
1
vote
0answers
98 views

Set the direction a Sprite faces based on its velocity

I'm learning Phaser, and decided to make a Mario-type clone. I'm writing a function that ensures the sign of the Sprites horizontal scale matches the sign of it's velocity. For a Sprite that's right-...
1
vote
0answers
716 views

Depth First Search for percolation to find clusters in Go game

I have some questions about Depth First Search and whether I implemented it correctly. Below is a more thorough discussion. The graph in question is a randomly colored square grid (I use 3 colors). ...
1
vote
0answers
195 views

Recreating pong

Github is a link to all my code and the working JAR file. I have been learning LibGDX and attempted to make a working Pong game, I am new to this and would like some pointers on where I could improve ...
1
vote
0answers
133 views

Text-based Snake game on Window - follow-up 2

Previous question: Text-based Snake game on Window - follow-up Summary of improvements: Corrected the names of classes and members data Implemented Console class ...
0
votes
0answers
23 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: ...