MCPcopy Create free account
hub / github.com/SethGammon/Citadel / put

Method put

scripts/grid.cjs:51–55  ·  view source on GitHub ↗
(x, y, char)

Source from the content-addressed store, hash-verified

49 }
50
51 put(x, y, char) {
52 if (x >= 0 && x < this.w && y >= 0 && y < this.h) {
53 this.cells[y][x] = char;
54 }
55 }
56
57 text(x, y, str) {
58 for (let i = 0; i < str.length; i++) {

Callers 5

textMethod · 0.95
boxMethod · 0.95
hArrowMethod · 0.95
vArrowMethod · 0.95
containerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected