"Dice Roll": Visvesvaraya Technological University
"Dice Roll": Visvesvaraya Technological University
A Project Report
For the 6th semester
“DICE ROLL”
Submitted in partial fulfillment of the requirements for the award of degree
of
BACHELOR OF
ENGINEERING IN
COMPUTER SCIENCE AND ENGINEERING
Submitted by
Akshata B Kurubar 2VD19CS002
Chandan R Naik 2VD19CS009
Kushal Nayak 2VD19CS020
Certificate
Certified that the project work entitled
“DICE ROLL”
Is bonafide work carried out by
Akshata B Kurubar
(2VD19CS002)
Chandan R Naik
(2VD19CS009)
Kushal Nayak
(2VD19CS020)
in partial fulfillment of the requirements for the award of the degree of Bachelor of
Computer Science and Engineering of Visvesvaraya Technological
University,Belagavi, during the year 2021-2022. It is certified that all the corrections /
suggestions indicated for internal assessment have been incorporated in the report. The
project report has been approved as it satisfies the academic requirements in respect of
project work prescribed for the Bachelor of Engineering degree.
ABSTRACT
Dice are used in many games, and often in fairly complex ways that make it difficult to
unambiguously describe the dice-roll mechanism in plain language.
Many role-playing games, such as Dungeons & Dragons, use a formalised notation for
some instances of dice-rolls. This notation, once explained, make dice-roll descriptions
concise and unambiguous. Furthermore, the notation has been used in automated tools for
pseudo-random dice-rolling (typically used when playing over the Internet).
This notation is, however, fairly limited in the types of dice-rolls it can describe, so most
games still use natural language to describe rolls. Even Dungeons & Dragons use formal
notation only for some of the dice-roll methods used in the game. Hence, a more complete
notation is in this paper proposed, and a tool for pseudo-random rolls and (nearly) exact
probability calculations is described.
The notation is called “Troll”, combining the initial of the Danish word for dice
(“terninger”) with the English word “roll”. It is a development of the language Roll
described in an earlier paper. The present paper describes the most important features of
Troll and its implementation
INDEX
Pagenumber
Chapter4 Implementation 12
Chapter 1
Introduction to Android OS
Android operating system composed of different software components that are arranged
into a stack.
1. Applications:
2. Application framework:
3. Application runtime:
Android Runtime environment contains components like core libraries and the
Dalvik virtual machine (DVM). It provides the base for the application
framework and powers our application with the help of the core libraries. Like
Java Virtual Machine (JVM), Dalvik Virtual Machine (DVM) is a register-based
virtual machine designed and optimized for Android to ensure that a device can
run multiple instances efficiently. It depends on the layer Linux kernel for
threading and low-level memory management. The core libraries enable us to
implement android applications using the standard JAVA or Kotlin
programming languages.
4. Platform libraries:
The Platform Libraries include various C/C++ core libraries and Java based
libraries such as Media, Graphics, Surface Manager, OpenGL, etc., to support
Android development.
5. Linux Kernel:
Linux Kernel is the heart of the android architecture. It manages all the available
drivers such as display, camera, Bluetooth, audio, memory, etc., required during
the runtime. The Linux Kernel will provide an abstraction layer between the
device hardware and the other android architecture components. It is
responsible for the management of memory, power, devices etc.
Project structure
Each project in Android Studio contains one or more modules with source code files
and resource files. Types of modules include:
1. Android app modules
2. Library modules
3. Google App Engine modules
By default, Android Studio displays your project files in the Android project view.
This view is organized by modules to provide quick access to your project's key source
files. All the build files are visible at the top level under Gradle Scripts and each app
module contains the following folders:
1. manifests: Contains the AndroidManifest.xml file.
2. java: Contains the Java source code files, including JUnit test code.
3. res: Contains all non-code resources, such as XML layouts, UI strings, and
bitmap images.
You can use the features of the build system to do the following:
• Customize, configure, and extend the build process.
• Create multiple APKs for your app, with different features using the same
project and modules.
• Reuse code and resources across source sets.
By employing the flexibility of Gradle, you can achieve all of this without modifying
your app's core source files. Android Studio build files are named build.gradle. They are
plain text files that use Groovy syntax to configure the build with elements provided by
the Android plugin for Gradle. Each project has one top-level build file for the entire
project and separate module-level build files for each module. When you import an
existing project, Android Studio automatically generates the necessary build files.
INTRODUCTION
The Dice is a simple cube shaped like object used in various board games such as snake-
ladder, Ludo etc. It is a simple cube which generates a random number when rolled by a
user. A Dice rolling simulator is nothing but a computer model that can be created by a
software program and it functions same as a normal dice in which user rolls a dice and a
random number gets shown on the screen.
An universal method for dice-rolls needs to be able to describe all of the above, and more.
Any Turing-complete programming language can do this, but the result is not necessarily
very concise or readable, and it may be impossible to analyse descriptions for such things
as probability distributions. Hence, we propose a notation that extends the mdn notation
from Dungeons & Dragons while being readable to non-programmers after a short
introduction.
Chapter 2
SYSTEM REQUIREMENTS SPECIFICATION
2.1. HARDWARE:
• Android v9.0 (pie)
• 6 Gb Ram
• Display screen with working touch
• 1 Gb Storage
2.1.SOFTWARE:
Each project in Android Studio contains one or more modules with source code files
and resource files. Types of modules include:
Chapter 3
IMPLEMENTATION
During the software-testing phase each module of software is thoroughly tested for
bugs and for accuracy of output. The system developed is very user-friendly and the
detailed documentation is also given to the user as online help wherever necessary. The
implementation phase normally ends with the formal test involving all the components.
Here 5 steps are involved:
Step 1: Creating a new project
• Click on the File option at the topmost corner in the left.
• Then click on new and open a new project and name the project.
• Now select the Empty Activity with language as Java.
• Name it Dice roller.
Chapter 4
RESULTS
Fig 4.1: Dice with face one Fig 4.1: Dice with face two
Fig 4.1: Dice with face three Fig 4.1: Dice with face four
Fig 4.1: Dice with face five Fig 4.1: Dice with face six
CONCLUSION
We have created a Dice roller that contains six faces marked with a different number of
dots from one to six. When rolled, the die comes to rest showing a random integer from
one to six on its upper surface. It works on Android devices and is designed for
generating random numbers, commonly as part of tabletop games, including dice
games, board games, role- playing games, and games of chance.
REFERENCES
Page