Tableau Chess: Interactive Chess game using Tableau JS API
July 22, 2016
, , , , ,

Tableau Chess GameNo doubt that chess is one of my favourite game. It’s more than 15 centuries old but still fresh and enjoyable. Also no doubt that my favourite data visualization tool is Tableau so why not mix these two together? That’s the motivation of my new Tableau game, the Tableau Chess that is running entirely in a Tableau Public workbook using some javascript coffeescript magic.

How can I play it?

Just go to the game’s page: . After the board is loaded you can select your figure and select where it should step. That’s it. You can also select what do you need in exchange of a pawn when it goes beyond the table.

Gameplay experience of Tableau Chess

Gameplay experience of Tableau Chess

It has no checkmate detection yet, that’s your part, you should know when you win or lose.

The Chess Engine

First of all, the chess engine is not written by me. I’m smart, but not half as smart as Oscar Toledo who wrote his first 1K engine in C. 1K means 1024 bytes here that includes the entire chess engine and rendering. Later he made javascript version of the game and published here: The complete source code of the chess engine (that handles moves, pawn promotion and everything) can fit on your screen. Let me show sources here:

Yes. That’s all. It has the UI, re-rendering and computer AI.  You can try out the original game here, try to beat it then don’t forget to check the page’s source code again. Yes, it’s amazing.

To help myself using the engine I used Raymond Hulha’s deobfuscated code from here:

Tableau Chess – Using the Tableau JS API

I wrote a dedicated post on how can you build interactive vizes like this from scratch using yeoman, grunt, bower, coffeescript and Tableau JavaScript API. You can read it here.

If you like it or it’s not working, just leave a comment.

Tamás Földi

Related items

/ You may check this items as well

sync frelard

Tableau Extensions Addons Introduction: Synchronized Scrollbars

At this year’s Tableau Conference, I tried t...

Read more

Tableau External Services API: Adding Haskell Expressions as Calculations

We all have our own Tableau Conference habits.  M...

Read more
Scaling Tableau Image

Scaling out Tableau Extracts – Building a distributed, multi-node MPP Hyper Cluster

Tableau Hyper Database (“Extract”) is ...

Read more