AlaskaLinuxUser's Scratchpad

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

TWRP on the Urbane!

[gallery ids="3997,3996" type="circle" columns="2"]

[gallery ids="3996,3997" type="circle" columns="2" orderby="rand"]

One of the side projects I have been working on is playing around with my new to me smart watch, an LG Urbane (W150). Among the different projects, I built TWRP for …

What's your evaluation, picoEngine?

eval

While certainly nothing fancy, I have added a quick material evaluation to picoEngine. Up till now, I've been using picoEngine with random moves on. It is an option that by default is off, but the end user can choose to play against the engine in random move mode, where the …

Would you like to en passant, picoEngine?

After hours of toil and pain, I realized that I was going about this all wrong, and then in 15 minutes enabled the ability for picoEngine to choose to en passant. It is amazing how far off track I was, and how quickly it could be fixed when I was …

picoEngine, in passing?

One of the key things that any chess engine needs to be able to do, is take the input from the calling program with regards to en passant. With a little algebra, it wasn't too hard to set up:

enpassworked

Fortunately, it was pretty easy to add the ability for the …

Castle, picoEngine?

castleinput

After about an hour of accomplishing nothing, I finally gave up on what I was doing and fixed the UCI input for "movpos" when castling. So now, if given the move for castling, it moves the rook as well as the king!

You can check out the whole commit on …

Android Remote Control through ADB

Today, I stumbled on perhaps the most ingenious use of ADB ever:

Remote control your Android phone through adb

A program and write-up by Marian Schedenig, that they shared on their website. This is perhaps the best adb tool I have ever seen, in that it takes three simple principles …

Merging Two MP4 Files From The Command Line

term

One of the problems I find with video editing, is sometimes it becomes very complicated to do something very simple. Take my current need. I needed to simply tie two mp4 files together, unedited, just hook one to the next. There are lots of gui types, but that requires opening …

Promotion time picoEngine!

picoEnginePawns

It's really important to note that if a pawn gets promoted, it becomes the new piece, whatever that piece is. Either a knight, bishop, rook, or queen. While this was happening in the interface, it was not being recognized by picoEngine. Since picoEngine didn't know it was promoted, it would …

picoEngine?! Where is the king?!

picoengineKingStuck

What good is king safety if the king refuses to capture it's attacker? I guess I had programmed a cowardly lion... er... uh... king. Actually the real problem was that of where the king "was" on the board, per my code.

// For checking if the king is safe.

int z …