r/WatchPeopleCode • Streamer • Jan 28 '21

Live now - Game Coding From Scratch - Twitch Chess Game

32 Upvotes

10 comments sorted by

2

u/ignotos Streamer Jan 28 '21

Working on a Twitch-integrated chess game, using p5.js

Live @ https://twitch.tv/StrayBasilisk =)

-2

u/redLamber Jan 29 '21

Fuck is a dark player and light player?

3

u/rokkerboyy Jan 29 '21

It seems pretty obvious to me...

0

u/redLamber Jan 29 '21

Please tell me because I'm genuinely confused

2

u/ignotos Streamer Jan 29 '21 edited Jan 29 '21

Those are placeholders where the players' actual usernames will eventually show up. The player controlling the light/white pieces, and the player controlling the dark/black pieces.

The different colours are referred to as "dark" and "light" throughout the rest of the code, so I just used those names without really thinking. Didn't want to use "black" and "white", because I plan to have the colours be configurable.

1

u/redLamber Jan 30 '21

That is a pog reply my guy. I fuck with it

3

u/rokkerboyy Jan 29 '21

Its the sides. Black and white chess pieces taking turns.

0

u/redLamber Jan 29 '21

Yeah I understood that they're the sides but I wanted to know why they're called darkplayer and lightplayer

2

u/sdnask Jan 29 '21

Black is a dark color and white is a light color?

3

u/redLamber Jan 29 '21

Yeah. Thank you. THAT was confusing me a lot.