Codehs basic snake

Python Brython Extras. This article includes information on setting timers, using event handlers, and drawing shapes in Brython. Written by Sara Jenis. Updated over a week ago. We have created some programs with examples of how to set timers, use event handlers, and draw shapes in our Bryton editor. All teachers and students can fork a copy of ...

Codehs basic snake. CodeHS is a comprehensive teaching platform for helping schools teach computer science. We provide web-based curriculum, teacher tools and resources, and professional development. All questions or comments related to CodeHS can go here!

6.10 For Loops and Graphics. Notes 6.10.1 For Loops and Graphics. Example 6.10.2 Lots of Circles Revisited. Exercise 6.10.3 Exploration: Confetti. Notes 6.10.4 Using i to Position Objects and Adjust Size. Example 6.10.5 Horizontal Stripes #1: Using i to Adjust Position.

Your goal in this project is to create a really fun snake game. Using JavaScript, you’ll create the snake game object. Then you’ll develop a system that detects if the snake collides …// Constants to represent the directions. var EAST = 0;. var SOUTH = 1;Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... 11.8.4 Basic Snake: 5: Exercise: 11.9 Crazy Ball Game: Lesson: 11.9.1 Crazy Ball Game 1: 1: Video: 11.9.2 Crazy Ball Game Quiz 1: 1: Check for ...Please give code for codehs 4.8.4: Basic Snake , so I can use it... School name. Don Bosco Prep High School. Course. CS-113. Department. CS. Answered step-by-step. Solved by verified expert. Related Answered Questions. Q Need help with the following 2 questions: 3. Draw the recursion tree when n = 8, where n represents the length of the ar We would like to show you a description here but the site won’t allow us.

Venom research still has a long way to go. Gerry climbs up to the veranda of our tribal longhouse with a snake bag held out in front of him. “Now don’t get too excited, but I’ve ju...Video 4.1.1 Intro to Canvas and Graphics. Notes 4.1.2 Debug Mode for Positioning. Video 4.1.3 Live Coding: Circle and Rectangle. Connection 4.1.4 Canvas Coordinates. Quiz 4.1.5 Canvas and Graphics Quiz. Example 4.1.6 Creating a Circle. Example 4.1.7 A Circle and a Rectangle. Exercise 4.1.8 A Ball in a Box. 5.10.4: Snake Eyes =. Write a program that rolls two dice until the computer gets snake eyes. You should use a loop and a half to do this. Each round you should roll two dice (Hint: use the Randomizer!), and print out their values. If the values on both dice are 1, then it is called snake eyes, and you should break out of the loop. Got a bird, car, snake, bug, shoe, or antique you can't put a name to? Here's how to find it. It’s not hard to identify a thing if you almost know what it is—maybe you’ve got a fie...Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. ... Check for Understanding 3.6.2 Basic Math in Python Quiz. Example 3.6.3 Order of Operations. ... Exercise 4.11.4 Snake …Let’s come to our topic, How to make a basic snake game in javascript? The answer is in the form of source code. First, you must have good knowledge of HTML canvas, CSS & Javascript. Then you can understand this program easily. You May Also Like: Registration Form with Validation Example and Source Code.

Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... 11.8.4 Basic Snake: 5: Exercise: 11.9 Crazy Ball Game: Lesson: 11.9.1 Crazy Ball Game 1: 1: Video: 11.9.2 Crazy Ball Game Quiz 1: 1: Check for ...To associate your repository with the codehs-solutions topic, visit your repo's landing page and select "manage topics." GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.“This market sells snakes?” There's no shortage of markets around Bangkok. The ones selling food are...unique. Walking out the doors of Suvarnabhumi Airport, Bangkok’s hot, humid a...CodeHS is a comprehensive teaching platform for helping schools teach computer science. We provide web-based curriculum, teacher tools and resources, and professional development. All questions or comments related to CodeHS can …Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. ... Check for Understanding 1.2.2 More Basic Karel Quiz. Example 1.2.3 Tennis Ball Square. Exercise 1.2.4 Make a Tower. ... Exercise 4.11.4 Snake Eyes. Exercise 4.11.5 Better Password Prompt. Badge 4.11.6 Looper Badge.

Is kwik trip car wash open 24 hours.

CodeHS is a comprehensive teaching platform for helping schools teach computer science. We provide web-based curriculum, teacher tools and resources, and professional development. All questions or comments related to CodeHS can go here!What you want to do base on the overview is create a snake that is constantly moving using a timer you will be making a new square just like in trail. Use keyboard events to change the direction and you are going to create new global variable to keep in check the direction of the snake. Sorry I'm not that great in explaining and English is also ...Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... Exercise 10.8.4 Basic Snake. 10.9 Crazy Ball Game. Video 10.9.1 Crazy Ball Game 1. Check for Understanding 10.9.2 Crazy Ball Game Quiz 1. …Outline. 1. Programming with Karel. 1.1 Introduction to Programming With Karel. Video 1.1.1 Introduction to Programming With Karel. Check for Understanding 1.1.2 Karel Commands Quiz. Example 1.1.3 Our First Karel Program. Exercise 1.1.4 Your First Karel Program.Some supplements are touted as miracle cures, and while they may have benefits, they don't live up to the hype. Find out about 10 such supplements. Advertisement Fish oil is one of...4.1 Intro to the Canvas and Graphics. Video 4.1.1 Intro to Canvas and Graphics. Notes 4.1.2 Debug Mode for Positioning. Video 4.1.3 Live Coding: Circle and Rectangle. Connection 4.1.4 Canvas Coordinates. Quiz 4.1.5 Canvas and Graphics Quiz. Example 4.1.6 Creating a Circle. Example 4.1.7 A Circle and a Rectangle.

37.9.1 Watercolor Grid. 10. Challenge. 37.9.2 Data Structures Unit Quiz. 25. Unit Quiz. Computer Science Principles Pretest. 38.1 Computer Science Principles Pretest. What you need to do is 1) store the direction the snake is traveling and 2) a have a loop/timer that every time it executes the snake travels 1 square. What the key presses then do is just change the direction of travel, the presses don't actually move the snake. Exercise 15.3.4 Basic Snake. 15.4 Crazy Ball Game; Video 15.4.1 Crazy Ball Game 1. ... Get in touch, so we can help you bring CodeHS to your school! Learn More ...CodeHS is a comprehensive teaching platform for helping schools teach computer science. We provide web-based curriculum, teacher tools and resources, and professional development. All questions or comments related to CodeHS can go here!1.1 Introduction to Programming With Karel. Video 1.1.1 Introduction to Programming With Karel. Check for Understanding 1.1.2 Quiz: Karel Commands. Example 1.1.3 Our First Karel Program. Exercise 1.1.4 Your First Karel Program. Exercise 1.1.5 Short Stack. 1.2 More Basic Karel. Video 1.2.1 More Basic Karel.Assignment: "Write a program that rolls two dice until the user gets snake eyes. You should use a loop and a half to do this. Each round you should roll two dice (Hint: use the Randomizer!), and print out their values. If the values on both dice are 1, then it is called snake eyes, and you should break out of the loop.5.10.4: Snake Eyes. Assignment: "Write a program that rolls two dice until the user gets snake eyes. You should use a loop and a half to do this. Each round you should roll two dice (Hint: use the Randomizer!), and print out their values. If the values on both dice are 1, then it is called snake eyes, and you should break out of the loop. Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional ... 1. Programming with Karel. 1.1 Introduction to Programming With Karel. Video 1.1.1 Introduction to Programming With Karel. Check for Understanding 1.1.2 Quiz: Karel Commands. Example 1.1.3 Our First Karel Program. Exercise 1.1.4 Your First Karel Program. Exercise 1.1.5 Short Stack. 1.2 More Basic Karel.1.1 Introduction to Programming With Karel. Video 1.1.1 Introduction to Programming With Karel. Quiz 1.1.2 Quiz: Karel Commands. Example 1.1.3 Our First Karel Program. Exercise 1.1.4 Your First Karel Program. Exercise 1.1.5 Short Stack. Debugging 1.1.6 Dancing Karel.

Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... 11.8.4 Basic Snake: 5: Exercise: 11.9 Crazy Ball Game: Lesson: 11.9.1 Crazy Ball Game 1: 1: Video: 11.9.2 Crazy Ball Game Quiz 1: 1: Check for ... Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. ... 9.8.4 Basic Snake: 5: Exercise: 9.9 Crazy Ball Game: Lesson: 9.9.1 Crazy Ball ... Python and Console Interaction. 1.1 Introduction. 1.2 Printing in Python Environment Set Up Print Functions Hello, world! Check Your Understanding Exercise: Introduce Yourself. 1.3 Variables and Types Variables Data Types Variable Types Check Your Understanding Exercise: Make Some Variables!Venom research still has a long way to go. Gerry climbs up to the veranda of our tribal longhouse with a snake bag held out in front of him. “Now don’t get too excited, but I’ve ju...Apr 14, 2022 ... A very simple game to get started with is Tic Tac Toe, as the board and the rules are simple. When we start coding, it's often difficult to ...Video 4.1.1 Intro to Canvas and Graphics. Notes 4.1.2 Debug Mode for Positioning. Video 4.1.3 Live Coding: Circle and Rectangle. Connection 4.1.4 Canvas Coordinates. Quiz 4.1.5 Canvas and Graphics Quiz. Example 4.1.6 Creating a Circle. Example 4.1.7 A Circle and a Rectangle. Exercise 4.1.8 A Ball in a Box. 4.6.5 The Worm. NUM_CIRCLES = 15. # This graphics program should draw a worm. # A worm is made up of NUM_CIRCLES circles. # Use a for loop to draw the worm, # centered vertically in the screen. # Also, be sure that the worm is still drawn across. # the whole canvas, even if the value of NUM_CIRCLES is changed. Each time the snake eats food, you should add 100 points. If the user loses, you should stop adding points. If the snake moves all the way past the right wall, the snake should end up on the left. If the snake goes through the left wall, the snake should end up on the right. Similarly the snake should be able to go through the top and bottom walls.

Lexus flashing tire pressure light.

Ff14 leave free company.

Each time the snake gets bigger, you should add one point to the users score. Each time the snake eats food, you should add 100 points. If the user loses, you should stop adding points. If the snake moves all the way past the right wall, the snake should end up on the left. If the snake goes through the left wall, the snake should end up on the ... View this program as a mobile app. Download the Expo app, then: Android:Scan this QR code from the Expo app. iPhone:Scan this QR code from your camera app.Connect CodeHS to your district’s educational platform. Curriculum . Computer Science Curriculum Customizable K-12 Computer Science CurriculumView this program as a mobile app. Download the Expo app, then: Android:Scan this QR code from the Expo app. iPhone:Scan this QR code from your camera app.// Constants to represent the directions. var EAST = 0;. var SOUTH = 1;I want the snake to grow bigger as it swallows food,but it only adds up one square and after that it stops adding squares, no matter how many times the snake swallows the food. Can someone please tell me how to fix it. Here is the code : var square; var addSquare; var SNAKE_WIDTH = 13; var x=getWidth ()/2-SNAKE_WIDTH/2;Manage & organize your class with customizable settings. Grading. Streamline your grading workflow. Data. Track & analyze student assessments & progress data. Write Code. Write, run, & debug code all in a web-based IDE. Integrations. Connect CodeHS to your district’s educational platform.Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... 15.3.4 Basic Snake: 5: 15.4 Crazy Ball Game: 15.4.1 Crazy Ball Game 1: 1: 15.4.2 Crazy Ball Game Quiz 1: 5: 15.4.3 Crazy Ball Game 1: 1: 15.4.4 Crazy ...Example 1.11.3 If/Else Statements. Example 1.11.4 One Ball in Each Spot. Exercise 1.11.5 Right Side Up. 1.12 While Loops in Karel. Video 1.12.1 While Loops in Karel. Quiz 1.12.2 While Loops in Karel Quiz. Example 1.12.3 Move to Wall. Exercise 1.12.4 Follow The Yellow Ball Road. Exercise 1.12.5 Lay Row of Tennis Balls. ….

CodeHS is a comprehensive teaching platform for helping schools teach computer science. We provide web-based curriculum, teacher tools and resources, and professional development. All questions or comments related to CodeHS can go here!Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. ... 10.8.4 Basic Snake: 5: Exercise: 10.9 Crazy Ball Game: Lesson: 10.9.1 Crazy ...for computer science final3.4 Basic Math in JavaScript. Video 3.4.1 Basic Math in JavaScript. Check for Understanding 3.4.2 Basic Math in JavaScript Quiz. Example 3.4.3 Simple Calculator. Example 3.4.4 Dollars to Pounds. Example 3.4.5 Dividing Up Groups. Exercise 3.4.6 T-Shirt Shop. Exercise 3.4.7 Running Speed.Creepy as they may be, it turns out that snakes are pretty handy to have around. Find out what would happen if there were no snakes at HowStuffWorks. Advertisement The allegedly fe...CodeHS is a comprehensive teaching platform for helping schools teach computer science. We provide web-based curriculum, teacher tools and resources, and professional development. All questions or comments related to CodeHS can go here!Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional …11.8.4 Basic Snake: 5: Exercise: 11.9 Crazy Ball Game: Lesson: 11.9.1 Crazy Ball Game 1: 1: Video: ... Get in touch, so we can help you bring CodeHS to your school!Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... Exercise 11.8.4 Basic Snake. 11.9 Crazy Ball Game. Video 11.9.1 Crazy Ball Game 1. Check for Understanding 11.9.2 Crazy Ball Game Quiz 1. Example 11.9.3 ... Exercise 15.3.4 Basic Snake. 15.4 Crazy Ball Game; Video 15.4.1 Crazy Ball Game 1. ... Get in touch, so we can help you bring CodeHS to your school! Learn More ... Codehs basic snake, Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. ... Check for Understanding 3.4.2 Basic Math Quiz. Example 3.4.3 Simple Calculator. Example 3.4.4 Dollars to Pounds. ... Exercise 6.7.5 Snake Eyes. Exercise 6.7.6 Better Password Prompt. Exercise 6.7.7 Riddle Machine., Video4.1.1 Intro to Canvas and Graphics. Notes4.1.2 Debug Mode for Positioning. Video4.1.3 Live Coding: Circle and Rectangle. Connection4.1.4 Canvas Coordinates. Quiz4.1.5 Canvas and Graphics Quiz. Example4.1.6 Creating a Circle. Example4.1.7 A Circle and a Rectangle. Exercise4.1.8 A Ball in a Box. Exercise4.1.9 Raise the Flag. , Your goal in this project is to create a really fun snake game. Using JavaScript, you’ll create the snake game object. Then you’ll develop a system that detects if the snake collides …, For many people, spotting a snake in your garden or yard is a terrifying experience. Depending on where you live, not all snakes are dangerous, and some may even be beneficial as t..., Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... 10.8.4 Basic Snake: 5: Exercise: 10.9 Crazy Ball Game: Lesson: 10.9.1 Crazy Ball Game 1: 1: Video: 10.9.2 Crazy Ball Game Quiz 1: 1: Check for ..., Apr 14, 2022 ... A very simple game to get started with is Tic Tac Toe, as the board and the rules are simple. When we start coding, it's often difficult to ..., Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. ... Quiz 1.2.2 More Basic Karel Quiz. Example 1.2.3 Tennis Ball Square. Exercise 1.2.4 Make a Tower. ... Exercise 4.8.4 Basic Snake. Exercise 4.8.5 Drag and Drop. 4.9 Animation and Games Quiz;, We would like to show you a description here but the site won’t allow us., Study with Quizlet and memorize flashcards containing terms like What is the name of the method to print out text in Java? System.out.println() System.out.printline() System.output() System.out.PRINTLN(), What is the output of the following lines? int x = 24; System.out.println("The total is " + x + x); The total is 24 The total is 2424 The total is 48 The total is x + x, Which of the ..., Study with Quizlet and memorize flashcards containing terms like What is the name of the method to print out text in Java? System.out.println() System.out.printline() System.output() System.out.PRINTLN(), What is the output of the following lines? int x = 24; System.out.println("The total is " + x + x); The total is 24 The total is 2424 The total is 48 The total is x + x, Which of the ..., 1. Programming with Karel. 1.1 Introduction to Programming With Karel. Video 1.1.1 Introduction to Programming With Karel. Check for Understanding 1.1.2 Quiz: Karel Commands. Example 1.1.3 Our First Karel Program. Exercise 1.1.4 Your First Karel Program. Exercise 1.1.5 Short Stack. 1.2 More Basic Karel., Cardano Dogecoin Algorand Bitcoin Litecoin Basic Attention Token Bitcoin Cash. More Topics. Animals and Pets Anime Art Cars and Motor Vehicles Crafts and DIY Culture, Race, ... Hey so i'm trying to write snake as my final project in codehs. I want the snake to grow bigger as it swallows food,but it only adds up one square and after that it ..., Outline. 1. Programming with Karel. 1.1 Introduction to Programming With Karel. Video 1.1.1 Introduction to Programming With Karel. Check for Understanding 1.1.2 Karel Commands Quiz. Example 1.1.3 Our First Karel Program. Exercise 1.1.4 Your First Karel Program., To associate your repository with the codehs-solutions topic, visit your repo's landing page and select "manage topics." GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects., 12K subscribers in the codehs community. CodeHS is a comprehensive teaching platform for helping schools teach computer science. ... Cardano Dogecoin Algorand Bitcoin Litecoin Basic Attention Token Bitcoin Cash. More Topics. Animals and Pets Anime Art Cars and Motor Vehicles Crafts and DIY Culture, Race, ... Codehs Java Script: Fun Snake 1 - 4 ..., Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... 10.8.4 Basic Snake: 5: Exercise: 10.9 Crazy Ball Game: Lesson: 10.9.1 Crazy Ball Game 1: 1: Video: 10.9.2 Crazy Ball Game Quiz 1: 1: Check for ..., 5.10.4: Snake Eyes. Assignment: "Write a program that rolls two dice until the user gets snake eyes. You should use a loop and a half to do this. Each round you should roll two dice (Hint: use the Randomizer!), and print out their values. If the values on both dice are 1, then it is called snake eyes, and you should break out of the loop. , Example 1.11.3 If/Else Statements. Example 1.11.4 One Ball in Each Spot. Exercise 1.11.5 Right Side Up. 1.12 While Loops in Karel. Video 1.12.1 While Loops in Karel. Quiz 1.12.2 While Loops in Karel Quiz. Example 1.12.3 Move to Wall. Exercise 1.12.4 Follow The Yellow Ball Road. Exercise 1.12.5 Lay Row of Tennis Balls., We would like to show you a description here but the site won’t allow us., Please give code for codehs 4.8.4: Basic Snake , so I can use it... School name. Don Bosco Prep High School. Course. CS-113. Department. CS. Answered step-by-step. Solved by verified expert. Related Answered Questions. Q Need help with the following 2 questions: 3. Draw the recursion tree when n = 8, where n represents the length of the ar, Basic snake game. Ask Question Asked 9 years, 10 months ago. Modified 8 years, 2 months ago. Viewed 10k times 7 \$\begingroup\$ Coming from a Java background, this is my first JavaScript-only game. I'm looking for some advice on what to improve. Also, I'm having trouble when it comes to program design. ..., Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. ... Check for Understanding 1.3.2 More Basic Karel Quiz. Example 1.3.3 Tennis Ball Square. Exercise 1.3.4 Make a Tower. ... Exercise 4.12.4 Snake Eyes., Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases. ... 15.3.4 Basic Snake: 5: 15.4 Crazy Ball Game: 15.4.1 Crazy Ball Game 1: 1: 15.4.2 Crazy Ball Game Quiz 1: 5: 15.4.3 Crazy Ball Game 1: 1: 15.4.4 Crazy ..., CodeHS Pro. Access a suite of teacher tools & resources. Computer Science Curriculum. 6-12th grade courses from intro to AP programming. Certifications. Industry-relevant …, Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. ... Check for Understanding 3.4.2 Basic Math Quiz. Example 3.4.3 Simple Calculator. Example 3.4.4 Dollars to Pounds. ... Exercise 6.7.5 Snake Eyes. Exercise 6.7.6 Better Password Prompt. Exercise 6.7.7 Riddle Machine., // Constants to represent the directions. var EAST = 0;. var SOUTH = 1;, A database filled with the answers to the CodeHS exercises for Python. Weekly Updates. Stars are appreciated. python karel codehs codehs-programs codehs-solutions ... 5 Factorial 4.8.6 All Dice Values 4.9.5 Lots of Dice 4.9.6 Random Color Square 4.10.4 Inventory 4.10.5 Fibonacci 4.11.4 Snake Eyes 4.11.5 Better Password Prompt …, Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional Development. Use Cases ... Exercise 10.6.4 Basic Snake. Notes 10.6.5 Project: Evasion (Key Events) Free Response 10.6.6 Project Reflection. 10.7 Animation and Games Quiz. Unit Quiz ..., Explore what CodeHS has to offer for districts, schools, and teachers. Coding LMS. Online IDE. CodeHS Pro. Computer Science Curriculum. Certifications. Professional …, Video Games track. This side track is a collection of coding challenges for various (classic and new) video games in Processing (Java) or JavaScript with p5.js. Snake Game in BASIC Snake Game code from the video. Expanded Snake Game in BASIC Includes game over checks and screen., Snakes are fascinating creatures, but they can be a nuisance when they invade your home or property. While some snakes are harmless, others can be venomous and pose a threat to hum..., Published Feb 12 2019 12:49 PM 2,917 Views. undefined. First published on MSDN on Dec 07, 2008. Authored by Vijaye Raji. This week's featured sample is the arcade classic Snake! And it comes from PlayDeez , who has also written other interesting Small Basic games (check out the Small Basic forums for more such hotness.), 5.10.4: Snake Eyes =. Write a program that rolls two dice until the computer gets snake eyes. You should use a loop and a half to do this. Each round you should roll two dice (Hint: use the Randomizer!), and print out their values. If the values on both dice are 1, then it is called snake eyes, and you should break out of the loop.