Giter Site home page Giter Site logo

system-mastermind's Introduction

System-Mastermind

  • Group ID: 12
  • Bulut KARABIYIK - 150150048
  • Alperen METINTAS - 150150025
  • Zeynep YETISTIREN - 150150020

It is character device driver module that will be play the board game "Master Mind".

How to use:

  • make
  • sudo su
  • insmod ./mastermind.ko mmind_number="1234" mmind_max_guesses=25 (mmind_max_guesses is optional, default = 10)
  • mknod /dev/mastermind0 c 250 0 (assuming major number is 250, can be checked with "grep mastermind /proc/devices")
  • echo "4321" > /dev/mastermind0 (guess the secret number)
  • cat /dev/mastermind0 (read guess history)

IOCTL Test Files: 3 test files for 3 ioctl commands (MMIND_REMAINING, MMIND_ENDGAME, MMIND_NEWGAME.

  • gcc test_mmind_remaining.c -o remaining

  • ./remaining

  • Program will print remaining guess count by calling MMIND_REMAINING ioctl command.

  • gcc test_mmind_endgame.c -o endgame

  • ./endgame

  • Program will print remaining guess count before MMIND_ENDGAME, then program will call MMIND_ENDGAME to clear guess history and guess count, then program will print remaining guess count again to show history is cleared.

  • gcc test_mmind_newgame.c -o newgame

  • ./newgame

  • Program will ask player to enter a new secret number, then program will change secret number and start a new game by calling MMIND_NEWGAME ioctl command.

system-mastermind's People

Contributors

metintasalperen avatar bulutkar avatar zynpyetistiren 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.