Advanced Ludo with Excel VBA Code: Learn How to Build a Fully Functional Ludo Game from Scratch Using Excel VBA
by ANURAG PANDEYPublish: Jan 24, 2025 General Nonfiction
Book Overview
Want to make Ludo Board Game in Microsoft Excel and play with friends and computers players? You can do that very easily. I have developed Excel Ludo Board Game, for which I had to write 1900 plus lines of code in Excel VBA,... that entire code is available in this book.
You need to create a Macro Enabled Workbook (.xlsm) file in Ms Excel. Then open the Visual Basic Editor by pressing Alt + F11 or by going to the Developer tab and clicking on Visual Basic button. Double click on any sheet in the project explorer of the Visual Basic Editor, which will open the code editor of that sheet. In that code editor, type or copy and paste the complete code provided in this book. And it's just done! Now you can close the Visual Basic Editor. Return to Excel, go to the same sheet and either press Alt + F8 or click the Macros button in the Developer tab. The Excel Ludo board game will be created quickly as you run the "CREATELUDO" macro.
This Excel Ludo Board Game can be played by a minimum of one player and a maximum of four players. This game can be played by computer players, by humans, or by both computer and human players together.
The computer player will not leave a single chance to kill the pieces of other players. The computer player can also hit two to three pieces simultaneously. If the computer player's die numbers are 6+6+3 and one of its pieces has other players' pieces on its sixth, twelfth and fifteenth house, then the computer player will kill all the three pieces in one move. A computer player can use its various pieces to strike other players' pieces in a move. If in a move several pieces of other players are going to be killed by different pieces of the computer player, then the computer player will select those pieces and kill them which have reached closest to the destination.
As soon as the computer player gets a chance, it will put its pieces in safe houses or send them to safe zone.
There will be two ways to roll the die - Auto Die and Manual die. When Auto Die is rolled, the game will generate random numbers which can be "1 to 5" or "6 + 1 to 5" or "6 + 6 + 1 to 5." When the Manual Die is rolled, you have to enter the die numbers. Computer players will only roll Auto Die.
ActiveX buttons and other ActiveX controls are not used in this game.
CREATELUDO Macro is part of the code provided in this book.
If Project Explorer is not displayed in Visual Basic Editor, select Project Explorer from the View menu on the main menu.
If the Developer tab is hidden then click the Office Button, click Excel Options, select Popular, check the box labelled “Show Developer tab in the Ribbon”, and then click OK.
ThrillerSuspenseMysterySupernatural SuspenseParanormal RomanceLiterary FictionHumorScience FictionFantasyHorrorTeen & Young AdultChildren'sPoetryReligion & Spiritualitymore»
BIOGRAPHY Namaskar! I am Anurag Pandey. I am an Author & Poet. My poems have been published in national newspapers and magazines of India like Navbharat Times, Kadambini etc. I have written Story/ Dialogues/ Screenplay for various TV Shows like Lady Inspector, Shaka Laka Boom Boom, Indonesian TV shows etc. At present I live in Bhubaneswar, India. Meditation, yoga, mystery, paranormal and supernatural activities, love, relationships are some of my favorite topics to read and write.