Giter Site home page Giter Site logo

xjtushilei / word-guessing-game Goto Github PK

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

Python3 code to implement a word guessing game. python3代码实现的一个单词猜测游戏,给你的英语水平打分

Home Page: http://csse1001.uqcloud.net/assignments/assignment1/a1.html

License: Apache License 2.0

Python 100.00%
guessing-game python

word-guessing-game's Introduction

word-guessing-game.

Python3 code to implement a word guessing game.

How to

python a1.py

Example Full Game

Welcome to the brain teasing zig-zag word game.

What is your name? John Smith

Hi John! We have selected a 6 letter word for you to guess.

Let the game begin!

Now guess 2 letters corresponding to letters 1 to 2 of the unknown word: at

Your guess and score were: at____ : 40

Now guess 3 letters corresponding to letters 1 to 3 of the unknown word: rat

Your guess and score were: rat___ : 120

Now guess 3 letters corresponding to letters 2 to 4 of the unknown word: abcd

Invalid guess 'abcd'. Should be 3 characters long.

Now guess 3 letters corresponding to letters 2 to 4 of the unknown word: ale

Your guess and score were: ale_ : 140

Now guess 3 letters corresponding to letters 3 to 5 of the unknown word: rid

Your guess and score were: _rid : 0

Now guess 3 letters corresponding to letters 4 to 6 of the unknown word: cab

Your guess and score were: ___cab : 40

Now guess 4 letters corresponding to letters 3 to 6 of the unknown word: husk

Your guess and score were: __husk : 20

Now guess 4 letters corresponding to letters 2 to 5 of the unknown word: ants

Your guess and score were: ants : 220

Now guess 4 letters corresponding to letters 1 to 4 of the unknown word: cats

Your guess and score were: cats__ : 240

Now guess 5 letters corresponding to letters 1 to 5 of the unknown word: caste

Your guess and score were: caste_ : 420

Now guess 5 letters corresponding to letters 2 to 6 of the unknown word: stale

Your guess and score were: _stale : 260

Now guess 6 letters corresponding to letters 1 to 6 of the unknown word: castor

Your guess and score were: castor : 400

You did not manage to guess the correct word. It was 'castle'. Better luck next time.

Your total score was 1900.

Cite

http://csse1001.uqcloud.net/assignments/assignment1/a1.html

word-guessing-game's People

Contributors

xjtushilei avatar

Stargazers

 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.