Thread: Contest - Snake Numbers

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401

    Contest - Snake Numbers

    It's been a while since a contest has been posted. Here's a fairly simple one.

    Write a function that can play Snake Numbers, leaving the fewest number of squares. The rules for Snake Numbers are simple:
    • The board is an 18x18 square of numbers ranging from 1-6. There are 5 bombs randomly placed on the board. The starting location is random on each board.
    • The object is to eliminate as many squares as possible by travelling over them.
    • On each turn, the snake head must go in one of eight directions (any of the cardinal or ordinal directions). The snake head travels a number spaces equal to the value of the square adjacent to the snake head in the chosen direction. The snake leaves a tail behind on all squares travelled over.
    • If the snake travels over a bomb, its tail, or one of the sides of the board, the game is over.


    Before I start spouting off stuff about entries and judging, is there any interest in this contest?

    [edit]See rules below.[/edit]
    Last edited by pianorain; 05-17-2006 at 09:42 AM.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  2. Contest Results - Snake Numbers
    By pianorain in forum Contests Board
    Replies: 4
    Last Post: 06-22-2006, 09:14 AM
  3. linked list problem
    By kzar in forum C Programming
    Replies: 8
    Last Post: 02-05-2005, 04:16 PM
  4. the definition of a mathematical "average" or "mean"
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 12-03-2002, 11:15 AM