GithubHelp home page GithubHelp logo

twitter-game-'s Introduction

Twitter-Game-

Summary.

This game prompts users to guess tweets. The tweets are retrieved from Elon musk and Kanye West accounts. The user has the option to continue the game each time a new question is prompted. Once the user decides to end the game, the stats for each player are displayed. Just to

Implementation. Although I did not have time to fully implement the remainder of the game and the data structure due to recruitment events this week, I plan on using a dynamic array to store the 3200 tweets initially risk retrieved from the API. The Twitter API retrieves the 3200 most recent tweets from Elon musk and Kanye West. Before filling the array with these tweets, I plan on filtering out the retweets, replies, and videos and images within the tweet itself. Next, I will generate a random number between zero and 3199 to index the random tweet. Once this tweet is presented to the user in the game, I will pull another tweet from the API to re-populate that index in the array. This program was written in node, and used the fetch method to retrieve the API request from twitter's API The bearer token was necessary to authenticate the request.

NOTE: Right now my fat request only grabs 100 tweets from the Twitter API, but I plan on fully implementing the 3200 version within this week.

twitter-game-'s People

Contributors

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