View blinking-starts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const initState = { | |
'A': { | |
white: true, | |
graph: { | |
'C': ['J', 'I'], | |
'D': ['F', 'G'], | |
'I': ['J'], | |
'G': ['F'] |
View ramen-table.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const STEAT_COUNTS = 8; | |
class Table { | |
constructor() { | |
this.first = new Seat(0); | |
this.seats = [this.first] | |
let preSeat = this.first; | |
for (let i = 1; i < STEAT_COUNTS; i++) { |