Conway's Game Of Life


Results 1 to 40 of 46

Threaded View

  1. #9
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: Conway's Game Of Life

    this is my ccitt16 crc code , i feed every byte in the cell array into it and store result in ring buffer after first testing to see if the new crc exists more than once in the buffer buffer, if its there more than once [or twice if you like] thats it game over.


    Code:
    this is a ccit 16 crc routine
    
    
    crc var word
    crc_in var byte
    j var byte
    
    
    
    
    to use   set crc  to $ffff
    
    
    then set crc_in to each value to be crc'ed
    and gosub crc16
    
    when finished crc hold the crc value
    
    
    don't forget to reset crc to $ffff for next time
    
    
    
    
    
    
    
    
    
    
    
    
    crc16:     
          crc= crc ^  crc_in 
          for j=0 TO 7
             if (crc&1)  THEN
               crc= ((crc>>1) ^ $a001 )   ;
             else
               crc= crc>>1;
             ENDIF  
          NEXT
    RETURN
    Last edited by richard; - 24th May 2020 at 12:10.
    Warning I'm not a teacher

Similar Threads

  1. programming jumping game
    By bokken in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th February 2012, 06:40
  2. Simon Game
    By flotulopex in forum Code Examples
    Replies: 1
    Last Post: - 4th November 2010, 06:25
  3. EEPROM life expectancy?
    By muddy0409 in forum General
    Replies: 3
    Last Post: - 1st May 2007, 12:44
  4. home brew game console W interface
    By PICMAN in forum General
    Replies: 1
    Last Post: - 15th March 2005, 22:25
  5. Game port to USB adaptor
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th September 2004, 03:16

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts