A PHP Error was encountered

Severity: Warning

Message: fopen(/tmp/ci_sessionh7da5g6h0dp47tkocspa03u56irjujm1): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 176

Backtrace:

File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct

File: /var/www/html/index.php
Line: 311
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /tmp)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct

File: /var/www/html/index.php
Line: 311
Function: require_once

Book Cricket game implemented in C++ | ranjith1604
Coders Packet

Book Cricket game implemented in C++

By RANJITH RAMAMURTHY TEVNAN

  • game.cpp
  • a.exe
  • This is a project implementing the Book Cricket game in C++. Book Cricket involves using the random page number of the book to calculate runs scored.

    In this game, Random Numbers are generated between 1 and 100. The 1st digit of the number is considered as the runs and added to the total score of the player.

    If the runs are more than 6, then it is considered as out and the next player comes and bats.

    If the 2nd player scores more than the 1st player, He/She wins, else the 1st player wins. If the scores are equal, then it is considered a tie.

    The rand() function is used to generate the random numbers while srand() makes sure that the numbers generated don't get repetitive.

    The attached file below includes the code and the .exe executable. The code should be run using the g++ compiler.  

     

    Download Complete Code

    Comments

    No comments yet

    Download Packet

    Reviews Report

    Submitted by RANJITH RAMAMURTHY TEVNAN (ranjith1604)

    Download packets of source code on Coders Packet