Can you beat 1024 bytes of JavaScript?

Sort:
Nottambula

Here's a fun article in Vice that came out last week. The graphics will make you appreciate Chess.com! wink.png

https://www.vice.com/en/article/n7vpnw/can-you-beat-1024-bytes-of-javascript-at-chess

Post up if you beat it!

Alramech
fogtowngirl wrote:

Here's a fun article in Vice that came out last week. The graphics will make you appreciate Chess.com!

https://www.vice.com/en/article/n7vpnw/can-you-beat-1024-bytes-of-javascript-at-chess

Post up if you beat it!

Thanks for sharing!  Really cool to see a really compact chess engine. 

The engine has a particular liking towards the Philidor's Defense and foregoing development in favor of making pawn chains in the middle of the board.  It's good at spotting immediate, short tactics but is likely to miss forcing lines or threats as few as three or four moves deep.

dooneen

Hardest part was looking at the board!

Nottambula

@dooneen So true - I kept confusing the bishops and pawns!

veryrabbit

very good happy.png i wanna learn programming and make my own chess program. how hard could it be

antisunechess
veryrabbit wrote:

very good i wanna learn programming and make my own chess program. how hard could it be

very

veryrabbit

I checked some source codes and watched some videos. It is not very hard.

But making a strong one is difficult. I can make a simple one, with 1000~ rating happy.png

antisunechess

the code is impressive but its too trade happy

antisunechess
veryrabbit wrote:

I checked some source codes and watched some videos. It is not very hard.

But making a strong one is difficult. I can make a simple one, with 1000~ rating

yep probably giving the program knowledge of checkmate and piece values should be enough to get it to 1100ish

antisunechess

This video has a lot of weird algorithms and some simple yet great strategies for a chess engine https://www.youtube.com/watch?v=DpXy041BIlA

veryrabbit
antisunechess wrote:

This video has a lot of weird algorithms and some simple yet great strategies for a chess engine https://www.youtube.com/watch?v=DpXy041BIlA

Nice video, i haven't watched all of it but i will do.

By the way, i've been inspecting programming languages to learn and decided on C#

What do you think? Is it good for beginners like me? Is it easy yet powerful?

antisunechess
veryrabbit wrote:
antisunechess wrote:

This video has a lot of weird algorithms and some simple yet great strategies for a chess engine https://www.youtube.com/watch?v=DpXy041BIlA

Nice video, i haven't watched all of it but i will do.

By the way, i've been inspecting programming languages to learn and decided on C#

What do you think? Is it good for beginners like me? Is it easy yet powerful?

C# is very useful, as it can be used in p[rogramming games in Unity as well. I think its fairly easy, not sure though. You should proably start with python, it is easier, quite powerful, and uses syntax similar to english grammar

veryrabbit

Installation is almost complete though happy.png Installed visual studio, and surprisingly it is free happy.png

I played some games made with unity. If C# is that common so i'd like to learn it a bit. 

And just noticed python is in visual studio as well happy.png happy.png that's great

veryrabbit

Started grin.png

antisunechess

you should take a course first lol

veryrabbit
antisunechess wrote:

you should take a course first lol

Learning by doing happy.png I'm looking for courses now.

Found a website called Lynda, they have great video courses. "C# Essential Training" will help me to get around i guess happy.png It's around 4 hours total.

Skill level: Beginner grin.png

 

binomine
veryrabbit wrote:

I checked some source codes and watched some videos. It is not very hard.

But making a strong one is difficult. I can make a simple one, with 1000~ rating

https://www.youtube.com/watch?v=U4ogK0MIzqk

This goes through all the steps. 

c# isn't that bad of a language, in general, but you'll find most stuff for chess is written in C++, simply because memory is a concern and C# is bloated compared to C++. 

That said, so many beginner programs get hung up on which language to use. They all work just fine. 

veryrabbit
binomine wrote:
veryrabbit wrote:

I checked some source codes and watched some videos. It is not very hard.

But making a strong one is difficult. I can make a simple one, with 1000~ rating

https://www.youtube.com/watch?v=U4ogK0MIzqk

This goes through all the steps. 

c# isn't that bad of a language, in general, but you'll find most stuff for chess is written in C++, simply because memory is a concern and C# is bloated compared to C++. 

That said, so many beginner programs get hung up on which language to use. They all work just fine. 

This is a professional happy.png He simply coded the lichess grin.png

I'll set a timeframe for this.. hm a week for c# training and another week for the chess program probably. since it is a hobby project for me this will suffice to see if i really can do something. I wanna see what i can do.

I have nothing to lose but i'm sure i will gain something, maybe i can make something working. but can't guarantee anything about its intelligence tongue.png

ILoveScotch

Coding a functional chess program in a week is very ambitious, even just to get it handling all legal moves, much less playing well.

That Coding Adventures example is excellent, but that's an elite programmer, not a beginner, and he spent far longer than a week.

veryrabbit

I may continue if things turn out to be promising though