| 09-09-2007, 08:48 AM | #1 |
Ok, so recently I have been really interested in programming. I learnt a bit of vba in year 6 (only 1 year ago lol), but then didn't really continue on with it. In the last couple months tho, I have gone on a programming spree. Just wanted some feedback and suggestions on some of the recent programs I have made: Snakes and Ladders: A snakes and ladders game made in excel with vba. This one is different (and better imo) because it has 3 different dice - small, which rolls a random number between 1 and 4, medium, which rolls 4 to 7, and large, which rolls from 6 to 10. This means that it requires some level of skill and thinking. Like it would be pretty stupid to go large if there was a snake that went down 40 spaces which was 7 spaces in front of you. Instead, it would be smarter to go small to get the ladder 3 spaces in front of you. When you open this, click on Enable Macros. If it doesn't work after doing that, then go to Tools, then Macro, then Security, then select Medium, and reopen the game. Tic Tac Toe: A simple tic tac toe game (sometimes called naughts and crosses) that I made in Microsoft Access (I don't know why the hell I made it in that lol). Pretty dodgy coding in it, someone more skilled with vb/vba could have done half as much code as me to do the same thing. Also pretty dodgy visuals in it I have to say. Connect 4: A (slightly) more advanced game of Connect 4. If you haven't played connect 4 before, there are 6 rows, each being 7 spaces high, and you drop circles into the gaps in the top. It it sort of like Tic Tac Toe, except there is gravity, (so u can't place one in the very top row, it just falls down if there's nothing underneath it), and you need to get 4 in a row to win. Again, dodgy coding (50 000 characters long, if I tried I could probably have thought better and planned it out and done it in 25 000). I think the New Game button is a bit dodgy, and sometimes messes up. Maths: Not a game, but a thing that asks you random maths questions. I again made this with VBA. This is one of my more recent programs. There are 6 different types of questions it asks you (you choose which kind of question u want via command buttons) - Addition, Subtraction, Multiplication, Division, Directed Number, and Absolute Value. There are 4 different difficulty levels that you choose via option buttons - Easy, Medium, Hard, and Insane. 2 days ago I added a button which is called "Prime Number Identifier", which is pretty self explanatory. You just type in a number, and it tells you if it is prime or composite. Most of you will probably think that this is way to easy, but remember, im 12 years old and we only just are learning about absolute value and directed numbers, although I am in the top maths class. When you open this, click on Enable Macros. If it doesn't work after doing that, then go to Tools, then Macro, then Security, then select Medium, and reopen the game. Mouse Jump: Again this isn't a game, but more of an annoying program I made yesterday in C++, while I was reading some online tutorials on the basics of C++. It gets the amount of x and y pixels in your screen, then in a never-ending loop, makes your mouse cursor jump around the screen randomly. If you get owned by it, click Ctrl + M to exit it. Anti-Taskbar: This restricts your mouse cursor from going to the taskbar and the start menu. I might add something so it hides it from your screen and your Task Manager, so u can't quit it. This program again gets the x and y pixels in your screen, and doesn't let your mouse go in the bottom sixteenth of your screen (which is the approximate size of the taskbar). Made it with C++. Please give me some feedback/suggestions about my programs, and I would also really appreciate giving me more ideas for some simpleish programs that would be possible for a beginner to make in C++ (or vba, or basic). Edit: Btw Mouse Jump and Anti-Taskbar aren't programs that you download for yourself, they are just to annoy friends/family with. Like maybe put it on their desktop, name it Warcraft 3.exe, and change the icon to the warcraft 3 one. Then watch them get owned as their ouse jumps around continuosly, not being able to exit it. Here's the link to the download for the programs mentioned above (i didn't attatch them on this thread because i already had made the pastebin link to download them when i was posting this on wc3jass, and im not bothered to reattach them to this): http://www.wc3campaigns.net/pastebin...97c62567a88500 |
| 09-17-2007, 03:59 PM | #2 |
Yeah you should get a proper programing compiler/tool thing If you're into vb then visual basic express 2005 or later would probably be a good bet for you, you can get it free off the Microsoft website and it shouldn't take you too long to adjust to the changes from vba. Anyway never try that mouse thing on me it is nasty. p.s sorry for posting both places didn't realize other was the pastebin. p.p.s u did vb in year 6 actually in class? cool wish i got to do that but no i had to teach myself lol. |
| 09-17-2007, 10:24 PM | #3 |
Thanks so much for replying! I've been coming here every 2 hours or so seeing if anyone has replied for the last week. I have previously tried to install vb express edition before, except that I do all my programming on my school laptop, which doesn't have admin rights. I could always just hack admin, except then my schools I.T department checks every1's laptop, and they see that I have hacked them, and then they take my laptop away for a month. And also my home computer is so loaded with virsuses that it can barely work. One day I will get a new comp and install VB express edition tho. Well, at my primary school, our class did this thing called mentoring. Basically we chose a subject (could be art, computing, pottery etc.), and the school tried to find sum1 from the community who was an expert in that topic, and every monday afternoon they taught us about it. And I did computing, and my mentor taught me VBA in excel. |
| 09-23-2007, 12:12 AM | #4 |
Really now, you should attach two versions of the Mouse Jump program. One of which uses WinMain rather than Main, and the other which uses Main. Reason: WinMain gets rid of that annoying little command prompt in Windows, but doesn't work in any other platform. Good work, though. |
| 09-23-2007, 03:07 AM | #5 |
Thanks! It turned out that spamming links to threads in hive chat really does work! lol. I never knew the difference between main and WinMain before. Thanks for pointing that out. I used FreeConsole() to get rid of it, but it still pops up for a short amount of time before the program gets rid of it. Hmm, I just tried to change it to WinMain, but i get an error saying: [Linker error] undefined reference to WinMain@16 It's probably something really simple and stupid, but I can't manage to fix it. I'm using this at the start of the program: void WinMain ( ) |
| 09-23-2007, 11:56 AM | #6 |
Oh, two things I can think of as missing: I believe you need to include the header file windows.h and you might also want to make it return an int, just like Main. |
