ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is just a guess:
The first couple of number are probably telling you specifics about the bitmap; color for instance. More than likely, the "c #00008B8B0000" does something similar. You will need to trace down where this array is used in the code. It will probably be sent to a function or procedure, and you'll have to either read the documentation of that function/procedure to understand how it interprets those values, or look at the code itself. Those numbers could mean just about anything.
If I understand the program's purpose, this is a minesweeper type of game, yes? I assume you've played minesweeper before. Think back to when you select an unknown tile. If there is no mine underneath it, then it tells you how many mines are adjacent to that tile. I would be willing to bet a lot of money that this array simply tells the program what to display in that tile. That's why there are arrays for "1", "2", "3", "4", etc. The program defines what each number will look like, and when the player chooses a tile, it determines how many mines are adjacent, selects the array for the appropriate number, and redraws the screen with the chosen array instead of an unknown tile.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.