GithubHelp home page GithubHelp logo

janus-tg / roulette-de1soc Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 154 KB

C program to play roulette on the Altera DE1SoC board.

Home Page: https://janus-tg.github.io/Roulette-DE1SoC/

License: GNU General Public License v3.0

roulette-wheel c de1-soc cpulator

roulette-de1soc's Introduction

Roulette-DE1SoC

A C program to play roulette for the DE1SoC board that lets the user input a number via the PS/2 keyboard. Then, the result of the roulette wheel, the user input, total wins/losses and the winnings are displayed on the VGA pixel buffer.

Background

A fixed amount of $10 is bet for each round of the game. The user enters a digit from 0-9 on the PS/2 keyboard of the Altera DE1-SoC board. This number is passed to a random number generator written in C that returns a single digit number. If the user's input and the number gerated randomly matches, then the user has won or else they have lost. The number of wins, losses, the user input, the roulette wheel number and the total winnings/losses of the user are displayed on the VGA screen.

Running the program

To run this program, please message me for the Source.c file as this project was created as part of a coursework.

  1. Open cpulator.01xz.net on your favorite browser.
  2. Select the architecture as ARMv7 and the system as ARMv7 DE-1 SoC.
  3. Change the language to C.
  4. Download the Source.c file from here and upload it to cpulator.
  5. Hit the compile button.
  6. Drag and place the PS/2 keyboard with address ff200100 next to the VGA Pixel buffer for ease of use.
  7. Keep entering numbers on the keyboard and the display will update automatically

License

GPL-3.0

roulette-de1soc's People

Contributors

janus-tg avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.