Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[C++] Chess game Terminal

Name: Snake4D 2012-01-11 12:05

Hi,
I'm trying to make a little chess game,
in C++, is in terminal because still I don't know a good GUI package for C++ sorry I'm n00b...

btw I got to print out the board:
like this:
[code]
-|--a-|--b-|--c-|--d-|--e-|--f-|--g-|--h-|
8|-bR-|+bk+|-bB-|+bQ+|-bK-|+bB+|-bk-|+bR+|
7|+bP+|-bP-|+bP+|-bP-|+bP+|-bP-|+bP+|-bP-|
6|----|+--+|----|+--+|----|+--+|----|+--+|
5|+--+|----|+--+|----|+--+|----|+--+|----|
4|----|+--+|----|+--+|----|+--+|----|+--+|
3|+--+|----|+--+|----|+--+|----|+--+|----|
2|-wP-|+wP+|-wP-|+wP+|-wP-|+wP+|-wP-|+wP+|
1|+wR+|-wk-|+wB+|-wQ-|+wK+|-wB-|+wk+|-wR-|
[\code]

and one can tell like in chess with the sentence "(e2:e4)" to move the piece from e2 to e4

but now what I need to make a AI?
I'll paste the code in pastebin so you can have a look:

Name: Anonymous 2012-01-11 15:39

Kodak is female. Isn't it widely known?

Name: Anonymous 2012-01-11 15:41

>>80
No this time he's actually right.

Name: Anonymous 2012-01-11 15:45

>>81
And what is less widely known is that you're not only a fag, but you're also the president of nambla.org!

Name: Anonymous 2012-01-11 15:47

>>83
Wow I really didn't know that, I had no idea we had a celebrity visiting our board!

Name: Anonymous 2012-01-11 15:49

>>84
Yeah, homeboy finally accepted the fact that he was too dumb to become a computer programmer, so he went back to his former job of being the president of NAMBLA.

Name: Anonymous 2012-01-15 18:55

I created a git repository for the code...

I know is not a masterpiece as I'm still slowly learning:
https://github.com/Pella86/ChessGameBeginner

you can have a look

>>46
don't worry..!

Name: Anonymous 2012-01-15 19:00

Why don't you just make a GUI? Jesus christ.

Name: Anonymous 2012-01-15 19:52

>>87
is difficult and time consuming.... But I'll think about it...

Name: Anonymous 2012-01-15 20:38

GUI: What Would Jesus Do?

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2012-01-15 21:12

>>88
I don't about C++, but at least in Java, there are tools that make building a GUI a breeze. All that's involved is just clicking a form button, and then using the drop and drag feature to resize and move things around. Hell, even the moron computer science major who can't seem to land a programming job could do it.

Name: Anonymous 2012-01-15 22:02

There at two checker AI bots doing battle at table 22 in Amoeba Room on Yahoo Checkers

Name: Anonymous 2012-01-15 22:04

>>90
QT QT QT QT QT QT QT QT QT QT
QT QT QT QT QT QT QT QT QT QT
QT QT QT QT QT QT QT QT QT QT
QT QT QT QT QT QT QT QT QT QT
QT QT QT QT QT QT QT QT QT QT
QT QT QT QT QT QT QT QT QT QT
QT QT QT QT QT QT QT QT QT QT

Name: Anonymous 2012-01-15 22:40

|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|♙|♙|♙|♙|♙|♙|♙|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|♟|♟|♟|♟|♟|♟|♟|♟|
|♜|♞|♝|♛|♚|♝|♞|♜|

Don't be afraid to use these unicodic symbols. It'll make life easier.

As for the programming. I'll have to think how I'd set it up.

I was tl;dr, idk whats going on just felt like posting.

Name: Anonymous 2012-01-15 23:00

♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞
♞♘♘♘♞♞♞♞♞♘♘♘♞♞♘♘♘♘♘♘♞♘♘♘♘♘♘♞♞♞
♞♞♘♘♞♞♞♞♞♞♘♘♞♞♘♘♞♞♞♘♞♞♘♘♞♞♘♘♞♞
♞♞♘♘♞♞♞♞♞♞♘♘♞♞♞♞♘♘♞♞♞♞♘♘♘♘♘♞♞♞
♞♞♘♘♞♞♞♘♞♞♘♘♞♞♘♞♞♞♘♘♞♞♘♘♞♞♞♞♞♞
♞♞♘♘♘♘♘♘♞♞♘♘♞♞♘♘♘♘♘♘♞♞♘♘♞♞♞♞♞♞
♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞

Name: Anonymous 2012-01-15 23:36

♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞
♞♘♘♘♘♘♘♞♞♘♘♘♞♞♘♘♘♘♘♘♞♘♘♘♘♘♘♞♞♞
♞♘♘♞♞♞♘♞♞♞♘♘♞♞♘♘♞♞♞♞♞♞♘♘♞♞♘♘♞♞
♞♞♞♘♘♞♞♞♞♞♘♘♞♞♘♘♞♞♞♞♞♞♘♘♘♘♘♞♞♞
♞♘♞♞♞♘♘♞♞♞♘♘♞♞♘♘♞♞♞♞♞♞♘♘♞♞♞♞♞♞
♞♘♘♘♘♘♘♞♞♞♘♘♞♞♘♘♘♘♘♘♞♞♘♘♞♞♞♞♞♞
♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞♞

Have you read yours today?

Name: Anonymous 2012-01-16 2:29

Its all about the move evaluation ^^ a gui will just make it look pretty

could google Mini-max / Beta-pruning / ... algorithms
(these pretty much are just trading search width for search depth)

i don't really like the " white advantage + black advantage = const " idea so much, but uh that's just my opinion anyway

Name: Anonymous 2012-01-16 2:45

>>93
|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|♙|_|♙|♙|♙|♙|♙|
|_|_|_|_|_|_|_|_|
|_|_|♙|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|♟|♟|♟|♟|♟|♟|♟|♟|
|♜|♞|♝|♛|♚|♝|♞|♜|

Name: Anonymous 2012-01-16 2:53

>>97
|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|♙| |♙|♙|♙|♙|♙|
| | | | | | | | |
| | |♙| | | | | |
| | | | | | | | |
| | |♟| | | | | |
|♟|♟| |♟|♟|♟|♟|♟|
|♜|♞|♝|♛|♚|♝|♞|♜|

Name: Anonymous 2012-01-16 2:55

>>98
|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|_|_|♙|♙|♙|♙|♙|
|_|♙|_|_|_|_|_|_|
|_|_|♙|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|♟|_|_|_|_|_|
|♟|♟|_|♟|♟|♟|♟|♟|
|♜|♞|♝|♛|♚|♝|♞|♜|

Name: Anonymous 2012-01-16 3:06

>>99
|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|_|_|♙|♙|♙|♙|♙|
|_|♙|_|_|_|_|_|_|
|_|_|♙|_|_|_|_|_|
|_|_|_|♟|_|_|_|_|
|_|_|♟|_|_|_|_|_|
|♟|♟|_|_|♟|♟|♟|♟|
|♜|♞|♝|♛|♚|♝|♞|♜|

Name: Anonymous 2012-01-16 3:08

>>100 What's with the summation?

Name: Anonymous 2012-01-16 4:07

the whole problem with move eval in chess (more or less) goes something like this;

To evaluate one first move, you kind of need to look at the opponents next (possible) move(s)... and then to see if his move(s) is/are really any good, you need to step ahead again, ...etc, etc, and this is known as the 'horizon effect'

Name: Anonymous 2012-01-16 4:30

just to illustrate, the first four moves can produce this number of unique boards  (starting at the zeroth move) 1 > 21 > 421 > 5623 > 75321  (^^ as calculated by me & my boxz ;) // ignoring all duplicate boards but summing all previously seen.. eg the first move has only 20 actual outcomes

Name: Anonymous 2012-01-16 7:57

|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|_|_|♙|♙|♙|♙|♙|
|_|♙|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|♙|♟|_|_|_|_|
|_|_|♟|_|_|_|_|_|
|♟|♟|_|_|♟|♟|♟|♟|
|♜|♞|♝|♛|♚|♝|♞|♜|


EXPERT CHESS PLAYER

Name: Anonymous 2012-01-16 9:30

this faggot makes me so mad. i just WISH IHBT. fuck

Name: Anonymous 2012-01-16 11:13


|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|_|_|♙|♙|♙|♙|♙|
|_|♙|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|♙|♟|_|_|_|_|
|_|_|♟|_|_|_|_|_|
|♟|♟|_|_|♟|♟|♟|♟|
|♜|♞|♝|♛|♚|♝|♞|♜|

Name: Anonymous 2012-01-16 11:23

>>106
|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|_|_|♙|♙|♙|♙|♙|
|_|♙|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|♙|♟|_|_|_|_|
|_|_|♟|♛|_|_|_|_|
|♟|♟|_|_|♟|♟|♟|♟|
|♜|♞|♝|_|♚|♝|♞|♜|

Name: Anonymous 2012-01-16 13:17

>>107
Wait, >>106 did not move, did he?

Name: Anonymous 2012-01-16 14:25

I really despise you. You can't even set up a chess board, and nobody noticed.

Name: Anonymous 2012-01-16 19:24

>>107
|♖|♘|♗|♕|♔|♗|♘|♖|
|♙|_|_|♙|♙|♙|♙|♙|
|_|♙|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|♟|_|_|_|_|
|_|_|♟|♙|_|_|_|_|
|♟|♟|_|_|♟|♟|♟|♟|
|♜|♞|♝|_|♚|♝|♞|♜|
>en passant...

Name: Anonymous 2012-01-16 19:30

betting trips on black

Name: Anonymous 2012-01-16 20:23

Autism . pdf

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List