Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Playing chess, Monopoly or Scrabble in VBA in Excel |
---|
Wise Owl have form for developing games in VBA (remember Flappy Owl, anyone?), but Tom Hedge has taken this one stage further by providing a portal to 3 popular games from a single webpage. |
Tom Hedge has used VBA to create 3 different games that you can play in Excel, all of which you can see at (and download from) his website.
You can see some of our previous attempts at VBA games on this website, including Flappy Owl (our VBA version of Flappy Bird), Wordle and Hangman.
Even the board for Monopoly is impressive:
This is actually a 46 x 46 grid of cells.
The background sheets are well-organised:
The list of squares, with the rent for each (not shown above) and current owner.
All very impressive!
As a Scrabble addict, I was most interested in this game:
A Scrabble game in progress.
This game probably has the simplest code and fewest procedures: I suspect that it was the first to be created.
The chess game is probably the most sophisticated, as each piece's moves are controlled by a class:
A game of chess in progress.
The code used is not for the VBA beginner:
Object-oriented programming in VBA using classes is definitely an advanced feature!
I can only imagine how long it took to cater for all of the possible scenarios in chess!
I'm seriously impressed by these games. To be a good programmer you definitely need to be able to solve logical problems, but you also need a high level of patience and good attention to deal. It must have taken ages to iron out all the bugs in these games!
From: | ChrisRees |
When: | 30 Jan 24 at 17:16 |
Did you purposefully make an error in the phrase "attention to detail" in the last section, to see if people would spot it ??
From: | Andy B |
When: | 30 Jan 24 at 18:36 |
No! But now I have to leave it in, otherwise your question will no longer make sense ...
From: | duggie |
When: | 15 Dec 23 at 00:00 |
From: | Andy B |
When: | 13 Jan 24 at 13:19 |
I had to Google 3-fold repetition!. I agree that this is an impressive tool, and think this is a bit nit-picking!
From: | Hedgemeister |
When: | 16 Dec 23 at 12:54 |
Thanks Duggie for your feedback on Excel VBA Chess. Every day is a school day as they say! I must say I hadn't come across threefold repetition or perpetual check before- niche but clearly important rules! I should really implement the rule that "you can castle with a rook that is under attack at the time, and the rook can pass through an attacked square when castling, while the king cannot." Have a good Christmas!
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.