0% found this document useful (0 votes)
72 views13 pages

Python Micro Project Sejal

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views13 pages

Python Micro Project Sejal

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

K. E.

SOCIETY’S
RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S (POLYTECNIC)
LOHEGAON, PUNE-47

A MICRO-PROJECT REPORT
ON
Dice Roller
SUBMITED TO
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
INPARTIAL FULFILLMENT OF THE REQUIRMENTS FOR THE AWARD OF
DIPLOMA IN AIML ENGNEERING
BY
1. Khopkar Viraj Vijay (AN2407)
2. Ovhal Sejal Ramakant (AN2408)
3. Gavhane Shriyash Mahadev (AN2409)

UNDER THE GUIDANCE


Mrs. Monika Johare
DEPARTMENT OF ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S POLYTECHNIC)
LOHEGON PUNE-411047 (2023-24)

RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S (POLYTECHNIC)


LOHEGAON PUNE -411047

CERTIFICATE
This is to certify that, the project entitled “Dice Roller” has been successfully completed by Khopkar Viraj
Vijay, impartial fulfillment of the Requirement of Engineering Diploma Program in AIML of Maharashtra
State Board of Technical Education during Academic Year-2023-2024

Place- Pune Enrollment no. - 2212270217


Date- Seat no. -

Mrs. Monika Johare Mr. Vikramsinh Saste Dr.K. Munde


(Subject Teacher) (Head of Department) (Principal)
RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S (POLYTECHNIC)
LOHEGAON PUNE -411047

CERTIFICATE
This is to certify that, the project entitled “Dice Roller” has been successfully completed by Ovhal Sejal
Ramakant, impartial fulfillment of the Requirement of Engineering Diploma Program in Computer of
Maharashtra State Board of Technical Education during Academic Year 2023-2024.

Place- Pune Enrollment no. - 2212270218


Date- Seat no. -

Mrs. Monika Johare Mr. Vikramsinh Saste Dr. K. Munde


(Subject Teacher) (Head of Department) (Principal)
RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S (POLYTECHNIC)
LOHEGAON PUNE -411047

CERTIFICATE
This is to certify that, the project entitled “Dice Roller” has been successfully completed by Gavhane
Shriyash Mahadev, impartial fulfillment of the Requirement of Engineering Diploma Program in Computer
of Maharashtra State Board of Technical Education during Academic Year 2023-2024.

Place- Pune Enrollment no. - 2212270220


Date- Seat no. -

Mrs. Monika Johare Mr. Vikramsinh Saste Dr. K. Munde


(Subject Teacher) (Head of Department) (Principal)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION, MUMBAI

MICRO PROJECT
Progress Report / Weekly Report
Name of the Project:

Course: DSP (22395) Program: AIML (AN3I) Roll No.

Sign of
Week Duration
Date Work / Activity Performed the
No in Hrs. Faculty
1

10

11

12

13

14

15

16
Table of Content

1. Introduction

2. Algorithm and Flowchart

3. Code

4. Output

5. Conclusion
Introduction
A Dice Roller is a simple yet fun program that simulates the rolling of
dice commonly used in various board games, tabletop games, and
even in decision-making scenarios. In this Python project, we will
create a program that emulates the rolling of one or more dice,
providing random results just like the real thing. This project is not
only a great way to practice your Python programming skills but can
also be useful for gamers and enthusiasts who want a quick and easy
way to generate random dice rolls for their games.

By creating a Dice Roller in Python, you can gain hands-on


experience with random number generation, user input handling, and
basic programming logic. You'll be able to customize the number of
dice, the type of dice (e.g., 6-sided, 20-sided), and even add features
like roll history or statistics to make it more functional and
interactive.

In this project, we'll use Python's random module to generate random


numbers and employ simple user prompts to specify the number and
type of dice to roll. The output will display the results of the rolls,
allowing you to use it for various gaming purposes or decision-
making processes.
Algorithm:

Start
Initialize necessary variables:
min_value = 1
max_value = 6
Display a message asking the user to press Enter to roll the dice.
Wait for user input (Enter key press).
Generate a random number between min_value and max_value
(inclusive) using the random module in Python. Let's call this number
result.
Display the result of the dice roll.
Ask the user if they want to roll the dice again.
If the user wants to roll again, repeat from step 3.
If the user doesn't want to roll again, end the program.
Flowchart

Code
Explanation:

1. import random: This line imports the `random` module,


providing access to functions for generating random numbers.
2. def roll_dice(): Defines a Python function named `roll_dice`
responsible for simulating the roll of a six-sided die.
3. return random.randint(1, 6): Generates a random integer
between 1 and 6, simulating the outcome of rolling a standard
die.
4. result = roll_dice(): Calls the `roll_dice` function and stores the
result in the `result` variable.
5. print(f"You rolled a {result}"): Prints out the result of the roll
using an f-string, displaying a message like "You rolled a 3" (if
`result` is 3, for example).
Conclusion

The Dice Roller project provides a clear example of how Python can
be used to simulate real-world scenarios. By leveraging the `random`
module, the program effectively replicates the experience of rolling a
physical die. This project demonstrates the simplicity and versatility
of Python programming, making it an ideal choice for a wide range of
applications beyond simple simulations. Further development could
include features like rolling multiple dice or providing a user-friendly
interface for interaction. Overall, the Dice Roller serves as a
foundation for more complex projects that involve random number
generation or game simulations.
Teacher Evaluation Sheet for Micro Project

Course Title and Code: - DSP (22395)

Title of the Project: - .

Group No: - _
COs addressed by the Micro Project:

CO :

CO :

CO :

CO :

CO :

Marks:-
Marks obtained
Marks for by the Total
Roll No. Name Of Student Group Work individual Marks
(06) based on viva (10)
(04)
Name of Subject Teacher : Mrs. M. Johare

Signature:

You might also like