Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 823 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 823 Bytes

Welcome to Guess Number Game!

Guess Number Game

A simple game developed in Swift that runs on a CLI, where you have two game modes, you can either guess a random number that has been generated by the computer or think a number for yourself and let the computer work it´s magic!

How to play

Just download or clone the repo and run the project from Xcode. By default both games have their limits set between 1 and 100, but you may change that in main.swift at any moment using the method setLimits on either game before starting it.

e.g.

let gnh = GuessNumberHumanClass(inputType: read)
gnh.setLimits(n1: 1, n2: 1000)
gnh.start()

Screenshots

Initial screen

User guessing computer's secret number

Computer guessing user's secret number