A clientβserver application of the Code In The Dark front-end game. Based on the original Tictail challenge: recreate a UI from a single screenshot using HTML & CSS and donβt see the result until timeβs up!
- 2-player coding in Monaco editor with Emmet
- Live updates on a TV screen
- Admin controls for rounds and timing
Main / |
TV /tv |
---|---|
![]() |
![]() |
Player editor /game?player=1|2 |
Admin panel /admin |
---|---|
![]() |
![]() |
-
Make sure all computers are on the same LAN
-
Create
.env
file withADMIN_PASSWORD=yourpassword
. If you skip this, the default password ispass
-
Run
npm i && npm start
-
On 2 laptops, open:
http://<server_ip>/game/?player=1
http://<server_ip>/game/?player=2
- On the TV screen, open:
http://<server_ip>/tv/
There are 12 prepared tasks in /tasks
folder:
- chat.png
- vote-checkbox.png
- calendar.png
- confirm.png
- payments.png
- β¦
To add a new task, put your own screenshot in /tasks
- Player editor with live preview
- Monaco Editor
- Emmet
- Admin panel for rounds
- Basic admin password
- Real-time updates on TV screen
- Add Tailwind/Bootstrap options
- Tasks with assets & variables
- Switch code/preview on TV
- Pulling β WebSockets
- Add extra time to the round
- End game & show confetti
- Support 4 players
- Prompt In The Dark β AI rounds with ChatGPT/Deepseek etc. π€
-
Install dependencies
npm i
- Run client and server apps
npm run dev
- codeinthedark.com β the Code In The Dark contest by Tictail
- codeinthedark/editor β the original editor