Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mrinank-Bhowmick/python-beginner-projects
/ set_neuron
Method
set_neuron
projects/Neurons/main.py:59–61 ·
view source on GitHub ↗
Set x, y to a Neuron.
(self, x, y)
Source
from the content-addressed store, hash-verified
57
)
58
59
def
set_neuron(self, x, y) -> None:
60
""
"Set x, y to a Neuron."
""
61
self._grid[y][x] = Neuron()
62
63
def
tick(self) -> None:
64
""
"Randomly kill or move all Neurons."
""
Callers
1
main
Function · 0.95
Calls
1
Neuron
Class · 0.70
Tested by
no test coverage detected