| | |
assembly simple games(Nasm)
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
![]() |
One that I've done and called it Phrase Guess was pretty simple. Allow player to enter a phrase or sentence, pretty well anything, including a clue. Then it's redisplayed with just underscores but in a way you can tell how many words there are and number of letters in each one. Assign weight values to each letter. For example 'E',s and vowels would have a value of 10 and the least common letter would have one.
I could go on for quite a while, but if you are interested in this one then start here first and I will help you as you go on or at leaset try. I don't have a linux box anymore so if your using ncurse your pretty well on your own as far as the interface goes.
I could go on for quite a while, but if you are interested in this one then start here first and I will help you as you go on or at leaset try. I don't have a linux box anymore so if your using ncurse your pretty well on your own as far as the interface goes.
Actually I understand only few topics in our subject which is about assembly because our teacher is just reading the notes and don't discuss further and explain what's the content all about. Then after the lecture, she will give us an exercise and luckily sometimes I can make it. We are using linux. Can you give me just the part of your code??If it's ok to you. Thank you. Have a good day!
Actually, I won't give you any code. This is in part to the fact and like I said I don't have a linux box. You probably won't find anyone else to give you code on this site either. What I can do for you though, is start breaking it down and then you build the code for each part and I can verify for you whether it's going to work or not.
Post notes on all the things you want the program to do and what the user interface is going to look like.
#1: Maximum length of input
#2: Number of players
#3: Scroing method
#4: Ability to save games/scores (yes/no)
#5: Clue(s)
To give yourself control over keyboard, color and cursor positioning I would recommend curses library, but termio works alright too.
So basically think of the program as you conceptualize it virtually then start making notes as if you were actually playing it. Assuming you want to do the app I've mentioned earlier, I would start with the entry and then center it vertically and horizonally on the screen only using 60% of the screens width.
Examle: EARTH IS THIRD PLANET FROM SUN
Output:
----- -- ----- ------ ---- ---
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
So as player selects letters they will disappear from display below and if applicable replace '-''s. The scoring method I used was give each letter a wieght value of 1 to 10. 10 being most frequently used letter, usually vowels and 1 to least used like 'X'
If you next post doesn't have any meaningful code then there's not much point going on, because I'm not going to start writing the program for you.
#1: Maximum length of input
#2: Number of players
#3: Scroing method
#4: Ability to save games/scores (yes/no)
#5: Clue(s)
To give yourself control over keyboard, color and cursor positioning I would recommend curses library, but termio works alright too.
So basically think of the program as you conceptualize it virtually then start making notes as if you were actually playing it. Assuming you want to do the app I've mentioned earlier, I would start with the entry and then center it vertically and horizonally on the screen only using 60% of the screens width.
Examle: EARTH IS THIRD PLANET FROM SUN
Output:
----- -- ----- ------ ---- ---
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
So as player selects letters they will disappear from display below and if applicable replace '-''s. The scoring method I used was give each letter a wieght value of 1 to 10. 10 being most frequently used letter, usually vowels and 1 to least used like 'X'
If you next post doesn't have any meaningful code then there's not much point going on, because I'm not going to start writing the program for you.
hi...gud day!!!
i really appreciated your effort for helping me..our teacher decided that our project will be composed of 2 members so i already have my partner...my partner and I decided to work for a game which is about memory..or pair of numbers...so we gonna work for it..actually we haven't decided yet what will be our approach...i would like to say thank very much!!!!god bless...again have a nice day! i'm gonna ask you if it's alright to ask anything regarding our project???thank you!!!
i really appreciated your effort for helping me..our teacher decided that our project will be composed of 2 members so i already have my partner...my partner and I decided to work for a game which is about memory..or pair of numbers...so we gonna work for it..actually we haven't decided yet what will be our approach...i would like to say thank very much!!!!god bless...again have a nice day! i'm gonna ask you if it's alright to ask anything regarding our project???thank you!!!
![]() |
Similar Threads
- Will This Computer Run Windows Vista? (Windows Vista and Windows 7)
- how do i make a web game (Site Layout and Usability)
- Dll from C++ to C# (C++)
- Help, i suppose (C++)
- Beyond C++ console program.. (C++)
- Monitor/Video Card/Power Supply problems? (Monitors, Displays and Video Cards)
- Func like getlastkey() or something like that? (C)
- Tutorial in Graphics&Mouse in C (Game Development)
Other Threads in the Assembly Forum
- Previous Thread: HLA Standard Library v2.2
- Next Thread: Mouse Manipulation Questions
| Thread Tools | Search this Thread |
Tag cloud for Assembly
3d 68hc11 6811 adress alm array asic asm assembler assembly boot bootloader buffer compression cursor debug development directory division dos draw emulator endtask error file int10h integer interrupt language loop lsi nohau osdevelopment print program range read remainder requirements shape storage string text tsr x86





