GithubHelp home page GithubHelp logo

cordle's Introduction

Cordle

Wordle, but with C!

Version

1.0
1.1: Added internet mode where you generate word by making API call (needs internet connection)



An example of a Cordle game
An example of a Cordle game

Setup

  1. Navigate to the directory with Cordle source code files in terminal
  2. To compile source code files, run gcc wordlist.c wordle.c interactive.c -lcurl
  3. Enter ./a.out in terminal to play Cordle
  4. P.S. Program doesn't run as is because of missing API key which I have hidden! To run, subscribe to Random Words API on rapidapi.com and insert your API key in line 100 of interactive.c. Or contact me :)

Instructions

  1. Set up your game by picking your mode and difficulty level

  2. Type in your 5-letter word guess

  3. If your guess is correct, YOU WIN!

  4. If your guess is incorrect, Cordle shows you the result of your guess:

    [1] great => ..eA.
    AbcdEf.hijklmnopq.s.uvwxyz

    This means the word doesn't contain the letters 'g', 'r', or 't'. It contains the letters 'e' and 'a' but 'e' is in an incorrect spot hence the lowercase while 'a' is in the correct spots which is why it's capitalized in the result of your guess. The alphabet string below shows which letters are for sure in the word by capitalizing them. The lowercase letters may be in the word, while the dots represent letters not present in the word at all

  5. In hard mode, you cannot use letters not in the word in subsequent guesses. You also can't use a letter in the wrong spot in subsequent guesses

Future Updates

  1. On hard using (a)pi mode, add verification of guesses by making spellcheck api call

cordle's People

Contributors

oluwxtope 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.