Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix auto snake game #1

Closed
Soheil-Rasouli opened this issue Dec 17, 2019 · 0 comments · Fixed by #4
Closed

fix auto snake game #1

Soheil-Rasouli opened this issue Dec 17, 2019 · 0 comments · Fixed by #4
Labels
beginner easy bug Something isn't working easy good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Soheil-Rasouli
Copy link
Owner

hello.
this game was created with Dev-C++
you just need to change the code of main.cpp file
I want to make an auto snake game with c++
the snake should go and eat the randome foods automatically, but it doesn't work well !!

if you can please fix it!!!!!!!!!

@Soheil-Rasouli Soheil-Rasouli added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers easy beginner easy labels Dec 17, 2019
@Soheil-Rasouli Soheil-Rasouli pinned this issue Dec 17, 2019
FreshMess referenced this issue in FreshMess/snake-game Jun 30, 2024
- Replaced platform-specific header <windows.h> with cross-platform alternatives.
- Updated console output functions to be compatible with Linux terminal.
- Introduced sleep_ms function using std::this_thread::sleep_for for cross-platform delay.
- Adjusted build configuration to use system default compiler (g++).

This refactor ensures the snake game now runs on both Windows and Linux environments without platform-specific dependencies.

Fixes: #1 - fix auto snake game
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner easy bug Something isn't working easy good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
1 participant