Skip to content

balena-io-experimental/balena-senseoflife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resin-senseoflife

A simple project to play Conway's Game of Life on a Raspberry Pi SenseHAT's 8x8 LCD matrix, deployed with resin.io

Follow the resin.io getting started guide at first, to deploy this project to your device.

Notes

  • The code randomly initializes the board, except if the SEED environment variable is found, because then it uses that to initialize (see code).
  • The game is looped until the last two frames are the same (e.g. run out of cells, or have a static configuration), in which case the code restarts the simulation using the same seed if supplied, or random value
  • Can press the SenseHAT joystick any time to do a restart (including new randomization if no seed is supplied)
  • The initial setup fills the board with cells at 25% probability

Glider

This code gratefully reuses the Game of Life algorithm published in Pythonic Perambulations.

License

Copyright 2017 Resinio Ltd

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Deploying Game of Life on a SenseHAT with resin.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published