Conway's Game Of Life


Closed Thread
Results 1 to 40 of 46

Hybrid View

  1. #1
    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

  2. #2


    Did you find this post helpful? Yes | No

    Default 256 Led Matrix running on 12F1840 Pic.

    As video.

    Colour 'Life' on tiny 12F1840.


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


    Did you find this post helpful? Yes | No

    Default Re: Conway's Game Of Life

    my first venture into youtube

    life on pic18f26k22@64mhz on 32x64 red,green p10 led panel , with word seeds

    Warning I'm not a teacher

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: Conway's Game Of Life

    Just amazing!

    Although I never fully understood that "game" your work looks impressive, especially on this P10 display in wide format.

    Nice job that video on YouTube also!

    Ioannis

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: Conway's Game Of Life

    Very nice Richard. What LED's are those?

    Did my thread resurrection encourage you.. LOL

    Can we have a look at your 2048 led code? In particular the word seeds....

    Thanks and very cool.

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


    Did you find this post helpful? Yes | No

    Default Re: Conway's Game Of Life

    Very nice Richard. What LED's are those?
    i'm not absolutely sure , sheldon (longpole) provided me with them in exchange for code to drive them
    they are twocolour p10 modules 16x32

    Did my thread resurrection encourage you.. LOL
    in deed , when i discovered the crc idea for stagnation i had to try it out

    Can we have a look at your 2048 led code? In particular the word seeds....
    i got that wrong its 16x64 ie 1024 leds , it was 32x32 and i got a bit crossed up.
    32x32 was no good for displaying the text seeds

    the display buffers use 1 bit per led per colour the nextgen buffer is byte size per pixel to make calcs easier

    since sheldon "comissioned" the base pbp code i will leave it to him to release it into the wild

    the display in the video is done in C my preferred language
    i can post it if its useful to anyone\
    ps
    the modules are quite tricky to drive and use a fair bit processor time constantly to maintain the pov illusion that looks like a display
    using 1 colour i got 15.6 fps, 2 not so good so far.
    i have not finished measuring or optimising it yet
    Last edited by richard; - 26th May 2020 at 09:15.
    Warning I'm not a teacher

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: Conway's Game Of Life

    I now have some text capability on my 16x16 Led 12F1840 'Life' setup.

    Ok it's static boring at the moment 5 byte x 8 bit font, but I also need to work out scrolling etc.

    Useful for menus and changing settings etc.

    I also want to implement a graphic bargraph type display for menus and parameters settings using the three push buttons.

    More digging in the pbpro forum archives needed.

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