![]() ![]() This is deliberately set in this curl pattern to make some adjustments later on much easier to make.Įach square is assigned a physical table with a single column and only a couple of rows. The first thing I do is assign a numeric value to each square on the board as follows. Let’s first look at how I keep track of the moves made by the person playing the game. Keeping track of the moves by DAX is harder as there is no current way in DAX to store state, or to make a selection on an object as the output of a calculation. The moves made by the end user are easy enough to track by combining slicers and bookmarks. In this game, there are two players, you the user against the DAX engine. The main challenge with this and any game using DAX in Power BI is how to keep of each player’s moves. ![]() If you see the layout of the game without images, you’ll agree the graphics improve the look and feel out of this world. Once again, I’d like to give a big thanks to Mike Carlo and the team over at PowerBI.Tips for coming up with some fantastic images for the game. The reason for this will become clear later in the article. If this happens, click the reset button in the top left corner and have another go. The underlying PBIX File can be downloaded here:Ī caveat I would like to make early in the article is the game gets confused about 5% of the time, so you may notice the computer pieces jump to a completely different layout if you play it often enough. For starters, here is a link to a playable “Publish to Web” version so you can try it out for yourself. I get pretty close and will detail my approach here in this article. ![]() To follow in the spirit of some of my recent blogs, I thought I would have a look to see how feasible it might be to build a Tic Tac Toe game using just DAX and Power BI. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |