Search found 204 matches

by Look
Sun Nov 15, 2015 9:18 am
Forum: Chess Players Forum
Topic: Saint Louis Fischer Random match
Replies: 4
Views: 1366

Re: Saint Louis Fischer Random match

Dirt wrote:There was an interesting Fischer Random match in Saint Louis. Hikaru showed his class, and Yifan killed in it. I wish there were more such matches, but most amateurs don't seem to like it.
Nowadays I almost exclusively play Fischer random chess (Chess 960) on the internet.
by Look
Thu Oct 29, 2015 11:03 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Closed positions
Replies: 3
Views: 801

Re: Closed positions

Henk wrote:Only if white castles short f5-f4 would be fine or if white king is on king side. Pawn structure plus king position and amount of material left over probably tells enough to assign this penalty.
AFAIK by the move f4, you are "releasing the tension" without concrete reasons.
by Look
Tue Oct 06, 2015 6:54 am
Forum: Chess Players Forum
Topic: Baku World Cup Final Four
Replies: 14
Views: 3741

Re: Baku World Cup Final Four

Dirt wrote:57. Ke4 never happened, of course.

I'm amazed that Peter failed to even get a draw the last two games. On to rapids!
All rounds went into Tiebreaks.
by Look
Sun Oct 04, 2015 5:55 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: generating algorithms
Replies: 18
Views: 2837

Re: generating algorithms

[...]
Xann wrote:An alternative is Inductive Logic Programming (ILP), which builds features in a Prolog-like language.
[...]

If you are interested in Prolog, some chapters in the book "Prolog_Programming_for_Artificial_Intelligence" by lvan Bratko discuss worthwhile topics.
by Look
Sun Sep 20, 2015 11:37 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: my_err functions
Replies: 7
Views: 906

Re: my_err functions

void my_err2(const char* const message) { assert(message!=NULL); fprintf(stderr,message); fprintf(stderr,"\n"); exit(EXIT_FAILURE); } Even better, since printf-like functions should always get a format string as an argument (for safety reasons): void my...
by Look
Sat Sep 19, 2015 6:42 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Online compilers
Replies: 3
Views: 733

Re: Online compilers

Look wrote:
matthewlai wrote:I have used http://coliru.stacked-crooked.com a few times. Seems to be a bit faster.
Another one, called "C++ Shell":
http://cpp.sh/
This time "Visual C++" itself:

http://webcompiler.cloudapp.net/
by Look
Sat Sep 19, 2015 5:52 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: my_err functions
Replies: 7
Views: 906

Re: my_err functions

[...] #include <math.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> int main(void) { int i; int Y=-1; errno = 0; i = sqrt(Y); if (errno) { perror("sqrt failed"); exit(EXIT_FAILURE); //i = 0; } //i++; return EXIT_SUCCESS; } [...] A...
by Look
Fri Sep 18, 2015 6:02 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: my_err functions
Replies: 7
Views: 906

Re: my_err functions

man 3 perror The routine perror() produces a message on the standard error output, describing the last error encountered during a call to a system or library function. perror prints the errno when something like open, creat fails. fprintf(stderr, "...") just prints to stderr. OK, now I understand i...
by Look
Fri Sep 18, 2015 5:18 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: my_err functions
Replies: 7
Views: 906

Re: my_err functions

man 3 perror The routine perror() produces a message on the standard error output, describing the last error encountered during a call to a system or library function. perror prints the errno when something like open, creat fails. fprintf(stderr, "...") just prints to stderr. Why I get this nasty w...
by Look
Fri Sep 18, 2015 1:59 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: my_err functions
Replies: 7
Views: 906

my_err functions

Hi, In the following code, what is the difference between my_err1 and my_err2, if there is any. #include <stdlib.h> #include <stdio.h> void my_err1(const char* const message) { perror(message); exit(EXIT_FAILURE); } void my_err2(const char* const message) &#...