Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads WEB Code JSP/Java
  • Category : JSP/Java
  • Tags :
  • Update : 2008-10-13
  • Size : 3.49kb
  • Downloaded :0次
  • Author :y***
  • About : yy
  • PS : If download it fails, try it again. Download again for free!
Download 1 (3.49kb)
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
The main point of gluttony: * 1) data structure: matrix[] is used to store information on the map, and if nothing is set to false, * if there is food or snakes, set to true; NodeArray, a LinkedList, used to hold each of the snakes * section; Food is used to preserve food; The Node class is the information that holds each location. * 2) important functions: * changeDirection(int newDirection), which is used to change the direction of the snake's direction, and only * keep your head in the direction of your head, as other directions are already in place. The newDirection * must not go in the opposite direction, so the opposite direction USES the same parity. In the test * use of direction % 2! =newDirection % 2. * moveOn(), used to update the location of the snake, changes the position of the head in the current direction. If I cross the line, * the end; Otherwise, check for food (add head) or body (end); If nothing, plus the head, * get rid of the tail. The use of the LinkedList data structure saves a considerable amount of trouble.
Packet file list
(Preview for download)
Packet : 69491709snake.rar filelist
snake.java
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.