Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgol: (list (list ?)) -> bitmap library #1

Open
rabsef-bicrym opened this issue Dec 16, 2022 · 0 comments
Open

cgol: (list (list ?)) -> bitmap library #1

rabsef-bicrym opened this issue Dec 16, 2022 · 0 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@rabsef-bicrym
Copy link
Member

rabsef-bicrym commented Dec 16, 2022

cgol stores active game sessions as a game, below:

+$  game
  $:  %0
      size=[x=@ud y=@ud]
      step=@ud
      bord=board
  ==

Where a board is a (list (list ?)). This format affords us easy conversion to a bitmap image for mini-map views for selecting saved games.

Please write an arm in /lib/cgol/play/hoon $-((list (list ?)) bmp) where bmp is encoded such that it can be directly inserted into a sail page img tag as src.

@rabsef-bicrym rabsef-bicrym converted this from a draft issue Dec 16, 2022
@rabsef-bicrym rabsef-bicrym added the good first issue Good for newcomers label Dec 16, 2022
@rabsef-bicrym rabsef-bicrym changed the title (list (list ?)) -> bitmap library (list (list ?)) -> bitmap library Dec 16, 2022
@rabsef-bicrym rabsef-bicrym added this to the mvp readiness milestone Dec 16, 2022
@rabsef-bicrym rabsef-bicrym changed the title (list (list ?)) -> bitmap library cgol: (list (list ?)) -> bitmap library Dec 16, 2022
@rabsef-bicrym rabsef-bicrym moved this from Todo to In Progress in cgol: game of life on urbit Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: In Progress
Development

No branches or pull requests

1 participant