Skip to main content

Posts

Showing posts from June, 2022

How to Make Gesture Controlled Snake Game in Python || Python code for snake game - Creation Code

 How to make a snake game in python? History of Snake Game: Snake is a video game genre where the player maneuvers a growing line that becomes a primary obstacle to itself. The concept originated in the 1975 two-player arcade game Blockade from Gremlin Industries, and the ease of implementation has led to hundreds of versions (some of which have the word snake or worm in the title) for many segments. After a variant was preloaded on Nokia mobile phones in 1998, there was a resurgence of interest in snake games as it found a larger audience. There are several hundred snake games for iOS alone. Modules: cv2 cvzone matplotlib scipy sklearn Roadmap: Problems Our first work will be to againcognising the hand Then find the point of the finger Now we will going to create a point with the finger We need to create a logic where the point will increase as we move the finger Next step is to stop the snake game when the coordinate of the points clash with each other Create random foods for the sna