AlaskaLinuxUser's Scratchpad

Commit thy works unto the LORD, and thy thoughts shall be established. - Proverbs 16:3

Merry Christmas To You!

Once again, it is Christmas day, and I want to wish you a very merry Christmas! I pray that God would bless you as he did me and everyone else when he sent his son!

The First Noel the angel did say
Was to certain poor shepherds
in fields as …

picoEngine meets Bob Seger....

nightmoves

Okay, so not really. Bob Seger once had a hit called "Night moves" which is what I just added to my picoEngine: knight moves. As always, you can check through the whole commit on my GitLab. Once again, I borrowed from my Java engine, justchess engine but had to do …

Amateur Radio License!

Well, after about a month of study, I went in and took my test for an amateur radio license, and, to God be the glory, I passed! That's right, today I just got my new call sign:

ham

I wonder what projects that will lead me to next?

Linux - keep it …

Is the king safe, picoEngine?

kingsafe

One of the really important rules of playing chess, in fact, the rule upon which the entire game hinges, is king safety. You can't make a move that puts your king in an unsafe position. This position of unsafe-ness is referred to as 'check'. If you can't find a way …

Qt Error: 'string' was not declared in this scope.

[gallery ids="3720,3721,3722" type="circle"]

Oddly enough, I ran into this same problem while using SFML. Here in Qt-creator, I'm getting this error while trying to use a string. I declared something like so:

#include <QCoreApplication>

#include <QDebug>

#include <QList>

int main(int argc, char *argv[])

{

    QCoreApplication a …

Once again, and from the top, picoEngine.

Last time I mentioned how the UCI (Universal Chess Interface) required two types of input, the FEN input, and a move by move input style. The second is rather interesting, especially for the internal chess board I have set up, because the input uses standard notation with alphanumeric characters.

startpos

Here …

QLayout::addChildLayout: layout already has a parent!

qt_4_31

While working with layouts in Qt creator, I ran into an interesting problem. I am trying to add my "gridLayout_2" (the box with 9 push buttons) into the "myGrid" (the box with 8 text labels). When I run this code:

#include "widget.h"

#include "ui_widget.h"

Widget::Widget(QWidget *parent …

picoEngine Meets FEN

print

One of the more interesting parts to programming chess engines, is using the UCI, Universal Chess Interface. In that interface standard are very specific settings. One of those is that engines should accept input as either move by move, or through FEN.

The FEN part was actually quite easy. Just …

Qt Creator, changing the default template for .pro files....

qt_change_default

The .pro file holds key information for your project that is used for compiling.

One issue that I have previously mentioned here was that certain styles of lambdas require you to use a C++ standard of 2011 or newer. This can be quickly overcome by adding the proper QMAKE flags …