Skip to content
← Back to Community
Console Chess - The result of 3 months of hard work - ♟️
Profile icon
EpicGamer007

Chess

This is a console chess game written in java.

  • Removing pieces
  • Moving pieces
  • Castling
  • En passant
  • Checkmate and Checks
  • Draws*
* We are missing one type of draw and that is the insufficient mating material draw, but we have decided that implementing that would be too complex

To play the game, simply run the program and then choose what you want to do. configure the settings and then start playing!

To play the game, you need to input the location of the piece you are moving and the location you want to move to. For example, e2 e4 to move the piece at e2 to e4.

Credits

IMPORTANT

  • We are working on implementing standard chess/algebraic notation so stay around so you can see that implemented too.
  • This took around 3 months

We hope you enjoy :)

Edit: If we were not clear enough, this game is like complete chess with all the errors/edge cases handled, special moves, removing taking pieces, checks, checkmates, draws, etc. (Except of course, the insufficient mating material draw)

Edit 2: Bug where you could not castle on queenside has been fixed

EDIT 3: Please do not ask for edit access because I will not give it to you, if you have a good reason to want edit access, tell me and I will see. If you do not have a good reason, fork it. I have been getting spammed with notifications for edit access. I just wanted to let you all know, thank you!

Voters
Profile icon
23powelr
Profile icon
ConorNichols1
Profile icon
karcino
Profile icon
IndigoW0lf
Profile icon
teh42eem00
Profile icon
EthanBurgos
Profile icon
NikhilHunn
Profile icon
maxina
Profile icon
HenryZelonka1
Profile icon
Aranav
Comments
hotnewtop
Profile icon
EpicGamer007

@dakshg doesnt get enough credit. He did like 80% of the logic and he helped with a ton of other stuff

Profile icon
Ahmadcreate0502
Profile icon
Whippingdot

YOU REACHED 1000 les gooooo. 15 upvotes for this comment and 100 smthing upvotes for this post. @EpicGamer007

Profile icon
EpicGamer007

@Whippingdot thanks lol

Profile icon
JBloves27

Congrats on getting this to trending!

Profile icon
EpicGamer007

@JBYT27 thanks :)

Profile icon
JBloves27
Profile icon
LingWu1

Wow, not bad for java, @EpicGamer007, 3 months of hard work deserved! I upvoted.

Profile icon
EpicGamer007

@LingWu1 thanks! (what do you mean by "not bad for java")

Profile icon
LingWu1

np @EpicGamer007 When I say that I mean that u r good at java because I am horrible

Profile icon
EpicGamer007

@LingWu1 oh ok

Profile icon
SleepySid
Profile icon
LingWu1
Profile icon
LingWu1

:D my mums friend is giving me lessons @EpicGamer007
Teacher - What does class mean?
Me - I have simply no idea
Teacher - ok then, what does int mean?
Me - uhhhhhh(goes on for a longggg time) integer?

Profile icon
SleepySid

@LingWu1 😁😁

Profile icon
CoolGuy27

@LingWu1 work hard and you'll get it!

Profile icon
LingWu1
Profile icon
LingWu1
Profile icon
SwaritChoudhari

BTW it is en passant not en passent

Profile icon
SwaritChoudhari

The best! Love it!!! I also love chess! Not to mention, I'm pretty good at it too! :)

Profile icon
EpicGamer007
Profile icon
SwaritChoudhari
Profile icon
JBloves27

LOL, that's what happened to me;

EDIT 3: Please do not ask for edit access because I will not give it to you, if you have a good reason to want edit access, tell me and I will see. If you do not have a good reason, fork it. I have been getting spammed with notifications for edit access. I just wanted to let you all know, thank you!

Profile icon
EpicGamer007

@JBYT27 bruh like half of my notifs are request for edit access and it is really annoying me :(

Profile icon
JBloves27

ooof, i never even touched half of them, i feel you XD @EpicGamer007

Profile icon
gwynethwingell

nice

Profile icon
EpicGamer007
Profile icon
Whippingdot

HOW YU DO TIS TIS BERY GOOOOODLY

Profile icon
EpicGamer007

@Whippingdot TANK(Thank) YOU!!

Profile icon
Whippingdot

Welcome. You have to be very talented to do this, the game(even tho I didn't play it for more than 3 seconds) works very nicely. It knows when a piece is moved wrongly, and stuff like that. Very nice @EpicGamer007

Profile icon
Slayerfindsnorm

Good job

Profile icon
EpicGamer007
Profile icon
muffinman12345

Nice Dude IS there a bot

Profile icon
EpicGamer007

@muffinman12345 we have not made a bot for this. it wud be much too complex for us

Profile icon
muffinman12345

@EpicGamer007 Yes I agree. I cannot make a bot cuz im only 14 years old!

Profile icon
CyberDaDev

idk something smells fishy @muffinman12345 @EpicGamer007

Profile icon
Jerryc07from

Could you make the chessboard bigger? It would be easier to see.

Profile icon
EpicGamer007

@Jerryc07from i cant do it myself, but you can. press ctrl and + or zoom in

Profile icon
Jerryc07from
Profile icon
ReyesP

Can you make castling easier? CK as in castling kingside and CQ as in castling queenside?

Profile icon
EpicGamer007

@ReyesP ig i can add that.

Profile icon
EpicGamer007

@ReyesP the problem is i have to remake the jar and all that stuff so like, if i do it, i probably will go back to the old bash file (main.sh) which means that it will take longer to load generally.

Profile icon
ReyesP

@EpicGamer007 Oh (by the way I have no knowledge of Java).

Profile icon
EpicGamer007

@ReyesP ok..

Profile icon
EpicGamer007

@ReyesP i added CK and CQ :)

Profile icon
SaraPatil1

@ReyesP Do I know you?

Profile icon
ReyesP

@SaraPatil1 I don't think so.

Profile icon
BobTheTomatoPie

I can see that there was a lot of work put into this

Profile icon
EpicGamer007

@BobTheTomatoPie there really was.

Profile icon
OldWizard209

wow this is cool,

but there is only one problem

I don't even know how to play chess

But dw, imma updoot, cuz this prolly took a lotta effort to make ig....

GREAT JOB @EpicGamer007

Profile icon
EpicGamer007

@OldWizard209 thanks :)

Profile icon
SleepySid

@OldWizard209 I defeated my dad in chess !

Profile icon
GEISTCODER

Woah that's cool man

Profile icon
ShajeenthShan

Its a bit hard to move

Profile icon
EpicGamer007

@ShajeenthShan this is in the console, we cannot use the mouse to move in this

Profile icon
Theunknownuser2

cool

Profile icon
fishyCoding

I will recommend you make moving pieces slightly easier.... But other than that, great project! Gave u an upvote!

Profile icon
EpicGamer007
Profile icon
DynamicSquid

:(

There's so many good posts on Repl.it but I don't have time to see them all!

Profile icon
EpicGamer007

@DynamicSquid yea so tru

Profile icon
TheJamCoder
Profile icon
EpicGamer007

@TheJamCoder that is supposed to happen, you entered a bad move so it says u entered an invalid move

Profile icon
TheJamCoder

@EpicGamer007-And if you don't want to it is ok

Profile icon
TheJamCoder

@EpicGamer007-It doesn't work for me. But add some more options and fix some errors and make a second nice game and please make the chess board bigger and make a random player computer to make it more challenging and put a easy hard and god mode and make it 3d it might even get 200 upvotes if you do this. And make other games like Ludo ext. If you want to do this it is fine :).

Profile icon
EpicGamer007

@TheJamCoder if u want to make the chess board bigger, press ctrl and +. i cannot make it bigger myself. IDK if I and @dakshg can create a chess bot though. that would be extremely difficult. sorry

Profile icon
CyberDaDev

lol how many times did you get the comment "Can you make the chessboard bigger?"

Profile icon
EpicGamer007

@CyberHacker101 i know right. liek bruh, at least read the comments, and at least try making it bigger yourself.

Profile icon
CyberDaDev

EPICK

Profile icon
EpicGamer007
Profile icon
SwaroopBappanad

Cool!

Profile icon
EpicGamer007
Profile icon
TcDouble

Nice Abhay, (Its the long name boi), I have absolutely no idea what this website is but signed up to say nice job.

Profile icon
EpicGamer007

@TcDouble ok... thx

Profile icon
Teddy007

noice

Profile icon
iomarz

won with one input, ez. cool game tho

Profile icon
EpicGamer007

@iomarz how do u win in one move??

Profile icon
elizurfk

@EpicGamer007 resigning

Profile icon
EpicGamer007

@elizurfk how do u win then??

Profile icon
elizurfk

@EpicGamer007 dunno I am a chess player and the shortest mate is 2 moves...
1.g4 e5 2.f3 Qh5#

Profile icon
elizurfk

@EpicGamer007 but resigning means the other person wins though

Profile icon
JBloves27

Hey @EpicGamer007, I had a quick question!
How did you make the board checkered? I tried looking through the code... It's too confusing for me! XD
If you do reply, thanks!

I'm sry for the ping, you must be getting lots of notifications.

Profile icon
EpicGamer007

@JBYT27 its ok, so the checkered board uses escape characters(which are in Finals.java). We used unicode characters for the pieces. We have two methods where we print the board, here and here. They are the exact same thing but different with a different orientation.

Profile icon
JBloves27

oh, ok! Thanks so much! :D @EpicGamer007

Profile icon
coolme

I didn’t really mean to send the request my device got hanged and it pressed anything