Category: Games
-
Programming Chess in Alpha Software: Lesson6
—
by
in Changing Object Property Values, Desktop Application, External_Record_Content_Get, Fetch, Form Design, Form Load Method, Games, Having Fun With Graphics, How To, List Objects, Object Method, On Event, On Fetch, On Init, On Push, Programming A Chess Game, Record List Combo, Table Open Method, Tree View, Using If Else if, Using Query’s, Writing Array’s, XBasic Tips and TricksHello Everyone Today we will be looking at the opening book for our chess program and the code for all the functions related to the opening book. Before we begin please take a moment to watch this short video which demonstrated the use of the opening book and the new features we are adding to…
-
Programming Chess in Alpha Software: Lesson5
Hello Everyone Today we are looking at the changes to our code affecting WhitesBoard and BlacksBoard. These two routines provide a list of each piece on the board which is available to move and where it can move to. The changes I made process these list to create values needed in scoring the game as…
-
Programming Chess in Alpha Software: Lesson 4
Hello Everyone In our last lesson we showed a video demonstrating the chess program in action with a human playing both Black and White. As I commented in the lesson, the code is growing and starting to become unmanageable. The code does work, but it fails in a major way. The available data strings are…
-
Programming Chess in Alpha Software: Lesson 3
Hello Everyone Today we will be looking at the process for capturing an opponents piece and the process for checking the opponents King. Also, we will need to readdress the Setup code to reflect the changes in our table grid. First, I now have a short video showing the game so far. Now it is…
-
Programming Chess in Alpha Software:Lesson 2
Hello Everyone In our first lesson we looked at our chess piece and position table and the code for each square on our board. As I mentioned the table may change and it has. I will review the new structure and reason for the change below. We also looked at moving the piece image from…
-
Programming Chess in Alpha Software
Hello everyone Today we embark on the most ambitious project to date. Creating a Chess program that thinks. Now you may be saying why bother there are plenty of chess programs and they are a dime a dozen. The answer is a chess program will use Classes Array’s Variables Functions Programming Loops Tables Form Objects…
-
Having Fun with Graphics in Alpha Software Lesson 3: Angles
Hello everyone In our last lesson we created our Pong table, the paddle and the ball. When the ball struck the paddle, it bounced only on the horizontal plane. Today, we are going to make the ball bounce at an angle. Watch the short video to see how it works and to get an overview…
-
Having Fun w/ Graphics using xBasic Lesson 2 Pong
Hello Everyone In the last lesson I said we will take what we learned and use it to create the beginning of a pong game. Now the pong game on the surface is very simple. You have a ball, a paddle and movement. When the ball hits the paddle, it bounces. If it misses the…
-
Having Fun w/ Graphics using xBasic Lesson 1
Hello everyone We are changing the pace here and will be showcasing routines not widely discussed in Alpha Software; mainly graphics and automation. To start with, we will do three simple animations; draw a line on a form, move a text box across the form and bounce a ball. Each of these animations are written…
-
Powerball Random Number Generator Lesson Three
Hello everyone As I mentioned in the last post we would discuss how to build a data analyzer for our Powerball Game. The principles we will discuss go beyond our game and can be used in all types of database applications. When designing an application for a business regardless of the development platform or the…