NetLogo banner

 Home
 Download
 Help
 Resources
 Extensions
 FAQ
 References
 Contact Us
 Donate

 Models:
 Library
 Community
 Modeling Commons

 User Manuals:
 Web
 Printable
 Chinese
 Czech
 Japanese

  Donate

NetLogo User Community Models

(back to the NetLogo User Community Models)

Chess

by Corey Haddad (Submitted: 03/17/2009)

[screen shot]

Download Chess
If clicking does not initiate a download, try right clicking or control clicking and choosing "Save" or "Download".

(You can also run this model in your browser, but we don't recommend it; details here.)

WHAT IS IT?

A simple chess program. Not fully playble and many bugs but works as proof of concept.

HOW IT WORKS

There are procedures that generate the possible moves for each piece and then each move is scored according to several criteria. Every possible move and its associated score are compiled into a list. The move with the highest score is the one played.

HOW TO USE IT

Do you know how to play chess?

THINGS TO NOTICE

The computer is only tactical with no strategy whatsoever. Check is not enforced or played properly.

THINGS TO TRY

Rewrite the code and make it better.

CREDITS AND REFERENCES

The program was written solely by Corey Haddad. I consulted nothing in the creation of the program. My goal was not to write a great chess program with lots of help but to see if I could write any type of chess program with no help, NetLogo documentation not withstanding.

(back to the NetLogo User Community Models)