Tricky Math
Puzzle
Team #NoFrazzle
1. Md Sanzidul Islam 151-15-5223
2. FarhanTawsif Chowdhury 151-15-4705
3. Nazmul Ahsan 151-15-
4668
4. Md. Mahbubur Rahman 151-15-
4761
5. Sadia Sultana Sharmin Mousumi 151-15-
5191
-What is assembly language ?
• A low level programming language
• Can easily tell the computer what to do
• Have to convert into machine language
• Have to convert word into numbers
• An assembler execute the program
• Made of instructions
Introduction
-Strength :
• easier to understand
• saves a lot of time and
effort of the
programmer.
• easier to correct errors
and modify program
instructions.
• has the same efficiency
of execution as the
machine level language.
-
Disadvantage
s• Assembly language is
machine dependent. A
program written for one
computer might not run
in other computers with
different hardware
configuration.
-Project Hints
1. Math Teaser
2. Sequences
3. Test Assumption
Skill
Project Details
-Segment
-Math Teaser
-Sequence & Assumption
Flow Chart
Start
Read Choice
Choice
= 1?
Choice
= 2?
Choice
= 3?
Choice
= 4?
Choice
= 5?
Math Teaser Sequences Assumption Skill Help Exit
YesYes Yes Yes Yes
No No No No
Math Teaser Q1
Print
Math Teaser Q3
Print
Ans =
C.A?
Point = Point + 1
Math Teaser Q2
Print
Ans =
C.A?
Point = Point + 1
Ans =
C.A?
Point = Point + 1
Answer input
Answer input
Answer input
Yes
No
Yes
No
Yes
No
Sequences Q1
Print
Sequences Q2
Print
Ans =
C.A?
Point = Point + 1
Sequences Q2
Print
Ans =
C.A?
Point = Point + 1
Ans =
C.A?
Point = Point + 1
Answer input
Answer input
Answer input
Yes
No
Yes
No
Yes
No
Random Number
Generate
Generate 1st
Random Number
Generate 2nd
Random Number
Generate 3rd
Random Number
N = 1st
RN ?
Input a
Number
N = 1st
RN ?
N = 1st
RN ?
Price = Price + 1;
Yes
No No No
Yes Yes
Background
MOV AH,1 ; MENU CHOICE
INT 21H
MOV CHOOSE,AL
CMP AL,'1'
JE MATH_TEASER
CMP AL,'2'
JE SEQUENCES
CMP AL,'3'
JE ASSUME_SKILL
CMP AL,'4'
JE HELP
CMP AL,'5'
JE EXIT
- Use of JMP
instruction
MOV CX,3
MOV BL,'0‘
AGAIN:
MOV AH,1
INT 21H
CMP AL,RANDOMNUM1
JE MATCH
CMP AL, RANDOMNUM2
JE MATCH
- Use of LOOP
instruction
CMP AL, RANDOMNUM3
JE MATCH
LOOP AGAIN
JMP RESULT
MATCH:
INC BL
LOOP AGAIN
RESULT:
NEW_LINE PROC ; NEW LINE PRINT PROCEDURE
MOV AH,2
MOV DL,0AH
INT 21H
MOV DL,0DH
INT 21H
RET
………………………………………….
CALL NEW_LINE
- Use of CALL PROC
CLRSCR PROC ; CLEAR SCREEN PROCEDURE
MOV AX,0600H ;06 TO SCROLL & 00 FOR FULL CLEAR SCREEN
MOV BH,07H ;ATTRIBUTE 0 FOR BACKGROUND AND 7 FOR FOREGROUND
MOV CX,0000H ;STARTING COORDINATES
MOV DX,184FH ;ENDING COORDINATES
INT 10H ;FOR VIDEO DISPLAY
RET
- Clear screen
procedure
RANDOM PROC ; GENERATE A RANDOM NO USING THE SYSTEM TIME
MOV AH, 00h ; INTERRRUPTS TO GET SYSTEM TIME
INT 1AH ; CX:DX NOW HOLD NUMBER OF CLOCK TICKS SINCE MIDNIGHT
MOV AX, DX
XOR DX, DX
MOV CX, 10
DIV CX ; HERE DX CONTAINS THE REMINDER OF THE DIVISION FROM 0 TO 9
ADD DL,'0' ; TO ASCII FROM '0' TO '9'
MOV BL,DL
RET
- Random no generate
procedure
Project showing &
Conclusion
Lets see..!
Who Is The Best Teaser Of This Day?
Conclusion
Why We Are
different?
•Easy interface
•Speedy
•Simple But No Bug
•Interesting
•Logical
What's in Future?
• Graphical Interface
• Adding AI Features
• Adding New Events
• New Stages Of Gam
Thanks Everyone!
With Many ManyWishes For

Math Puzzle Game By Assembly Language

  • 1.
    Tricky Math Puzzle Team #NoFrazzle 1.Md Sanzidul Islam 151-15-5223 2. FarhanTawsif Chowdhury 151-15-4705 3. Nazmul Ahsan 151-15- 4668 4. Md. Mahbubur Rahman 151-15- 4761 5. Sadia Sultana Sharmin Mousumi 151-15- 5191
  • 2.
    -What is assemblylanguage ? • A low level programming language • Can easily tell the computer what to do • Have to convert into machine language • Have to convert word into numbers • An assembler execute the program • Made of instructions Introduction
  • 3.
    -Strength : • easierto understand • saves a lot of time and effort of the programmer. • easier to correct errors and modify program instructions. • has the same efficiency of execution as the machine level language.
  • 4.
    - Disadvantage s• Assembly languageis machine dependent. A program written for one computer might not run in other computers with different hardware configuration. -Project Hints 1. Math Teaser 2. Sequences 3. Test Assumption Skill
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
    Start Read Choice Choice = 1? Choice =2? Choice = 3? Choice = 4? Choice = 5? Math Teaser Sequences Assumption Skill Help Exit YesYes Yes Yes Yes No No No No
  • 11.
    Math Teaser Q1 Print MathTeaser Q3 Print Ans = C.A? Point = Point + 1 Math Teaser Q2 Print Ans = C.A? Point = Point + 1 Ans = C.A? Point = Point + 1 Answer input Answer input Answer input Yes No Yes No Yes No
  • 12.
    Sequences Q1 Print Sequences Q2 Print Ans= C.A? Point = Point + 1 Sequences Q2 Print Ans = C.A? Point = Point + 1 Ans = C.A? Point = Point + 1 Answer input Answer input Answer input Yes No Yes No Yes No
  • 13.
    Random Number Generate Generate 1st RandomNumber Generate 2nd Random Number Generate 3rd Random Number N = 1st RN ? Input a Number N = 1st RN ? N = 1st RN ? Price = Price + 1; Yes No No No Yes Yes
  • 14.
  • 15.
    MOV AH,1 ;MENU CHOICE INT 21H MOV CHOOSE,AL CMP AL,'1' JE MATH_TEASER CMP AL,'2' JE SEQUENCES CMP AL,'3' JE ASSUME_SKILL CMP AL,'4' JE HELP CMP AL,'5' JE EXIT - Use of JMP instruction
  • 16.
    MOV CX,3 MOV BL,'0‘ AGAIN: MOVAH,1 INT 21H CMP AL,RANDOMNUM1 JE MATCH CMP AL, RANDOMNUM2 JE MATCH - Use of LOOP instruction CMP AL, RANDOMNUM3 JE MATCH LOOP AGAIN JMP RESULT MATCH: INC BL LOOP AGAIN RESULT:
  • 17.
    NEW_LINE PROC ;NEW LINE PRINT PROCEDURE MOV AH,2 MOV DL,0AH INT 21H MOV DL,0DH INT 21H RET …………………………………………. CALL NEW_LINE - Use of CALL PROC
  • 18.
    CLRSCR PROC ;CLEAR SCREEN PROCEDURE MOV AX,0600H ;06 TO SCROLL & 00 FOR FULL CLEAR SCREEN MOV BH,07H ;ATTRIBUTE 0 FOR BACKGROUND AND 7 FOR FOREGROUND MOV CX,0000H ;STARTING COORDINATES MOV DX,184FH ;ENDING COORDINATES INT 10H ;FOR VIDEO DISPLAY RET - Clear screen procedure
  • 19.
    RANDOM PROC ;GENERATE A RANDOM NO USING THE SYSTEM TIME MOV AH, 00h ; INTERRRUPTS TO GET SYSTEM TIME INT 1AH ; CX:DX NOW HOLD NUMBER OF CLOCK TICKS SINCE MIDNIGHT MOV AX, DX XOR DX, DX MOV CX, 10 DIV CX ; HERE DX CONTAINS THE REMINDER OF THE DIVISION FROM 0 TO 9 ADD DL,'0' ; TO ASCII FROM '0' TO '9' MOV BL,DL RET - Random no generate procedure
  • 20.
  • 21.
    Lets see..! Who IsThe Best Teaser Of This Day?
  • 22.
    Conclusion Why We Are different? •Easyinterface •Speedy •Simple But No Bug •Interesting •Logical What's in Future? • Graphical Interface • Adding AI Features • Adding New Events • New Stages Of Gam
  • 23.