use single tab indent. do not add useless comments, only necessary. write clean…
- User
use single tab indent. do not add useless comments, only necessary. write clean efficient code, prefer inline js in html. camel_case.
without redundant checks, assume data is correct and better if function crash to expose data errors.
central area array choose w,h monospace font choose size each cell is symbol
can set cursor to select cell press keyboard or letters storage to replacing content. Example: click, press asdf wil result "f" in cell
Bottom area statistics number used letters available letters checkbox limit. if checked then type from available storage. checkbox reuse. if checked then replaced letters return to storage letter storage list of available letters with available quantity. count of total changes in game area. cells in storage also have hovered event to show info. slider game speed FPS
right area info about hovered cell and letter inside it.
letters info: x wall o item ball movable, fall down if no wall. only 1 ball in cell . item particle movable, can move to other particle to form particles : item particles randomly turn into 1 particle. 10% chance
right (wall) < left (wall) >o_ >_o ^ up (wall) v down (wall) = teleport each frame swap cells right and left to it ( a=b b=a ) i heat (wall) each frame add heat to near items. untill 255. ball with 255 heat became particle. heat is Red color amount. f cold (wall) cool near items
9 sink delete items in near cells
- source create particles in random free near cells
each frame swap buffers (we read one write to other)
<^v push o and : probably better not actually push but set item property move 1 in that direction. so next turn item propagate movement property or move itself and clear movement flag. o and : has property of it moving direction to propagate pushing to adjacent o: think how to easy propagate movement without loops, recursion, races. each frame movement propagate until there is obstacle. do not use loops in calculate movement. use iterative simulation approach.
gray grid lines render items: 255, 255-heat, 255-heat
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.