GithubHelp home page GithubHelp logo

shinmh / oss_snake_game Goto Github PK

View Code? Open in Web Editor NEW
3.0 6.0 1.0 193 KB

Sejong university, project for open source software.

License: MIT License

C 100.00%
snake console-snake-game linux oss sejong-university snake-game-in-c snake-game-2d

oss_snake_game's Introduction

header

Hello

My name is Myeongha. My major is computer engineering.

I have project experience using Python, Java & Android, Ruby & Ruby on Rails, c++ languages.

๐Ÿ“„ Education

  • ๐ŸŽ“ University of sejong - 2015.03 ~ 2021.02
  • Samsung software academy 5th - 2021.1 ~ 2021.6
  • LG CNS - 2021.7 ~ now

Interest

  • Java & Spring

Anurag's GitHub stats

oss_snake_game's People

Contributors

gunmania avatar junpppyo avatar sangwookshin avatar shinmh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sangwookshin

oss_snake_game's Issues

occur error when select high score in menu

Describe the bug
์ฒ˜์Œ ํ™”๋ฉด์—์„œ ํ•˜์ด์Šค์ฝ”์–ด ๋ณด๊ธฐ๋ฅผ ํ•˜๋ฉด ์ฝ˜์†”์ด ํŒ…๊น๋‹ˆ๋‹ค.
์•„๋งˆ ํŒŒ์ผ์ด ์—†๋Š”๋ฐ ์ฝ์„๋ ค๊ณ  ํ•˜์—ฌ์„œ ํŒ…๊ธฐ๋Š” ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค. ํ™•์ธ ๋ถ€ํƒ๋“œ๋ ค์š”!!

To Reproduce
Steps to reproduce the behavior:

  1. ๊ฒŒ์ž„์„ ์‹คํ–‰ํ•จ
  2. ๊ฒŒ์ž„ ๋ฉ”๋‰ด์—์„œ hign score๋ฅผ ์„ ํƒํ•จ
  3. ํ™”๋ฉด์ด ์ „ํ™˜๋˜๋ฉด์„œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•จ

Expected behavior
ํŒ…๊ธฐ๊ณ  ๋‚˜์„œ high score๋กœ ๋‹ค์‹œ ๋“ค์–ด๊ฐ€๋ฉด ๊ทธ ๋•Œ๋ถ€ํ„ฐ๋Š” ํŒ…๊ธฐ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
์•„๋งˆ ๊ทธ ํ›„๋กœ๋Š” ํŒŒ์ผ์ด ๋งŒ๋“ค์–ด์ ธ์„œ ๊ทธ๋Ÿฐ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค.

Screenshots

Additional context

Not works on Linux/macOS

Describe the bug
Can't compile on Linux or macOS system with gcc/llvm.
Need to

To Reproduce

Expected behavior
Running on Linux/macOS system.

Screenshots

Additional context
--- (log) ---
snake.c: In function โ€˜waitForAnyKeyโ€™:
snake.c:164:9: warning: implicit declaration of function โ€˜_kbhitโ€™; did you mean โ€˜kbhitโ€™? [-Wimplicit-function-declaration]
164 | while(!_kbhit());
| ^~~~~~
| kbhit
snake.c:168:12: warning: implicit declaration of function โ€˜_getchโ€™; did you mean โ€˜getchโ€™? [-Wimplicit-function-declaration]
168 | pressed = _getch();//์ž…๋ ฅ๋œ ๊ฐ’์œผ๋กœ pressed ์ดˆ๊ธฐํ™”
| ^~~~~~
| getch
snake.c: In function โ€˜createHighScoresโ€™:
snake.c:486:2: warning: implicit declaration of function โ€˜fopen_sโ€™; did you mean โ€˜fopenโ€™? [-Wimplicit-function-declaration]
486 | fopen_s(&file,"highscores.txt","w+"); //highscores.txt ํŒŒ์ผ์„ ์ƒ์„ฑํ•จ. ํŒŒ์ผ์ด ์ด๋ฏธ ์žˆ์œผ๋ฉด ๊ทธ ํŒŒ์ผ์„ ์ง€์šฐ๊ณ  ์ƒ์„ฑ
| ^~~~~~~
| fopen
snake.c: In function โ€˜resetRankDataโ€™:
snake.c:561:18: warning: implicit declaration of function โ€˜tolowerโ€™ [-Wimplicit-function-declaration]
561 | pressed = (char)tolower(pressed); // ๋Œ€๋ฌธ์ž์ผ ๊ฒฝ์šฐ ์ „๋ถ€ ์†Œ๋ฌธ์ž๋กœ ๋ณ€ํ™˜.
| ^~~~~~~
snake.c: In function โ€˜inputScoreโ€™:
snake.c:626:2: warning: implicit declaration of function โ€˜gets_sโ€™; did you mean โ€˜getsidโ€™? [-Wimplicit-function-declaration]
626 | gets_s(name,sizeof(name)); //๊ธฐ๋ก ํ•  name์„ ์ž…๋ ฅ ๋ฐ›์Œ
| ^~~~~~
| getsid
snake.c:660:4: warning: implicit declaration of function โ€˜strcpy_sโ€™ [-Wimplicit-function-declaration]
660 | strcpy_s(highScoreNames[x], sizeof(highScoreNames[x]),name); //์ž…๋ ฅ๋œ ์ด๋ฆ„์„ ๊ธฐ๋ก x๋ฒˆ์งธ ๋ฐฐ์—ด์— ์ €์žฅ
| ^~~~~~~~

์ดˆ๊ธฐํ™”๋ฉด ๋‹ค์‹œ๊ทธ๋ ค์ฃผ์„ธ์š”

Is your feature request related to a problem? Please describe.
์ดˆ๊ธฐํ™”๋ฉด ๋ฑ€ ๊ทธ๋ฆผ์—์„œ ๊นจ์ง€๋Š”๊ฒŒ ์žˆ์–ด์š”.

Describe the solution you'd like
๋‹ค๋ฅธ๋ฌธ์ž๋กœ ๋ฐ”๊พธ๋ฉด ๋  ๊ฒƒ ๊ฐ™์•„์š”

Describe alternatives you've considered
empty

Additional context
empty.

์ฒ˜์Œ ๊ฒŒ์ž„ ์ข…๋ฃŒ์‹œ ํ”„๋กœ๊ทธ๋žจ ์ข…๋ฃŒ

Describe the bug
์ฒซ ๊ฒŒ์ž„์ด ๋๋‚˜๋ฉด ์ตœ๊ณ ๊ธฐ๋กํ™”๋ฉด์ด ์•„๋‹Œ ๊ฒŒ์ž„ ์ข…๋ฃŒ๊ฐ€ ๋œน๋‹ˆ๋‹ค

To Reproduce
Steps to reproduce the behavior:
์ฒซ ๊ฒŒ์ž„์ด ๋๋‚˜๋„ ํ”„๋กœ๊ทธ๋žจ์ด ์ข…๋ฃŒ๋˜์ง€ ์•Š๊ฒŒ

Expected behavior
Screenshots
Additional context

Warning C6387 in func resetRankData()

Describe the bug
์ƒˆ๋กœ ์ถ”๊ฐ€ํ•œ resetRankData()์— C6387 : 'fp'๊ฐ€ '0'์ผ ์ˆ˜ ์žˆ์Œ ๊ฒฝ๊ณ  ๋ฐœ์ƒ

To Reproduce

Expected behavior

Screenshots

Additional context

Add rank data reset function

Is your feature request related to a problem? Please describe.
It's not problem. just for feature enhancement.

Describe the solution you'd like
All rank data reset to default value.

below is an example.

1 (tab) 0 (tab)(tab)(tab) EMPTY
2 (tab) 0 (tab)(tab)(tab) EMPTY
3 (tab) 0 (tab)(tab)(tab) EMPTY
4 (tab) 0 (tab)(tab)(tab) EMPTY
5 (tab) 0 (tab)(tab)(tab) EMPTY

Describe alternatives you've considered

  • Add new function and open rank file and fill with default value.
  • Link the new function somewhere. (for example, main menu or inside of "High Scores")

Additional context

Select mode print inconnect

Describe the bug
๊ฒŒ์ž„ ๋ชจ๋“œ๋ฅผ ์„ ํƒํ•˜๋Š” ํ™”๋ฉด์˜ ๋ฌธ๊ตฌ๊ฐ€ ์ž˜๋ชป๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค.
ํ˜„์žฌ๋Š” 'Select The game speed between 1 and 9.
์ˆ˜์ •์€ 'Select The game mode !!!'

To Reproduce
Steps to reproduce the behavior:

  1. ๊ฒŒ์ž„ ์‹คํ–‰
  2. ๊ฒŒ์ž„๋ชจ๋“œ ์„ ํƒ

Expected behavior
๊ฒŒ์ž„ ๋ชจ๋“œ ๋ฌธ๊ตฌ๋ฅผ ์œ„์— ์ ์ธ ๋‚ด์šฉ์ฒ˜๋Ÿผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.

Screenshots
Additional context

Cut Tail Button

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
empty
Describe the solution you'd like
A clear and concise description of what you want to happen.
ํŠน์ • ํ‚ค๋ฅผ ๋ˆ„๋ฅด๋ฉด ๋ฑ€์˜ ๊ธธ์ด๋ฅผ ์ค„์—ฌ์ฃผ๋Š” ๊ธฐ๋Šฅ ์žˆ์œผ๋ฉด ์ข‹์„๊ฑฐ ๊ฐ™์•„์š”.
์ž์‹ ์˜ ๋ชธ๊ณผ ๋ถ€๋”›ํž๊ฑฐ ๊ฐ™์„๋•Œ ์‚ฌ์šฉํ•˜๋Š” ์šฉ๋„๋กœ
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
์˜ˆ๋ฅผ๋“ค์–ด 'C' ๋ฅผ ๋ˆ„๋ฅด๋ฉด ๋ชธ ๊ธธ์ด๊ฐ€ ์ ˆ๋ฐ˜์œผ๋กœ ์ค„์–ด๋“ ๋‹ค๊ฑฐ๋‚˜
Additional context
Add any other context or screenshots about the feature request here.
empty

Remove Cursor blink

Is your feature request related to a problem? Please describe.
๊ฒŒ์ž„ ์ค‘ ์ปค์„œ๊ฐ€ ๊นœ๋นก์ด๋Š” ํ˜„์ƒ์ด ๋‚˜ํƒ€๋‚˜์š”.

Describe the solution you'd like
๊ฒŒ์ž„ ์ค‘ ์ปค์„œ๊ฐ€ ๊นœ๋นก์ด๋Š” ํ˜„์ƒ์„ ์•„์˜ˆ ์‚ญ์ œํ•ด์ฃผ์„ธ์š”.

Describe alternatives you've considered
empty

Additional context
empty

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.