AlaskaLinuxUser's Scratchpad

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

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 …

Blindfold Chess, Mr. picoEngine?

While building the picoEngine in C++, I will often be wondering what the engine is thinking. One of the problems is that I can not "see" the engine's board, so I don't know why it would make a particular move. So, I added a print function. This also is in …

error: no matching function for call to 'QAction::QAction(const char [5])'

qt_4_21

While working through section 4 of my Qt GUI creator course, I ran into an interesting error:

/home/alaskalinuxuser/Documents/qt_course/section_4_21_qmainwindow/mainwindow.cpp:19: error: no matching function for call to 'QAction::QAction(const char [5])'
QAction * quitAction = new QAction("Quit");
^

What made the error interesting was that my …