const Player = ((self = START_POS)=>{
const rotate = (angle)=>(self.direction = (self.direction + angle + TAU) % TAU);
const walk = (distance)=>{
const dx = Math.cos(self.direction) * distance;
const dy = Math.sin(self.direction) * distance;
const Player = ((self = START_POS)=>{
const rotate = (angle)=>(self.direction = (self.direction + angle + TAU) % TAU);
const walk = (distance)=>{
const dx = Math.cos(self.direction) * distance;
const dy = Math.sin(self.direction) * distance;