Julia Programming Projects by Adrian Salceanu;

Julia Programming Projects by Adrian Salceanu;

Author:Adrian Salceanu; [Неизв.]
Language: eng
Format: epub
Tags: COM051010 - COMPUTERS / Programming Languages / General, COM077000 - COMPUTERS / Mathematical and Statistical Software, COM042000 - COMPUTERS / Natural Language Processing
Publisher: Packt Publishing
Published: 2018-12-26T10:17:18+00:00


The preceding screenshot is of our game's landing page running on localhost at port 8888.

Starting a new game

Excellent! Now, let's focus on the functionality for starting a new game. Here, we need to implement the following steps:

Extract the difficulty settings from the URL.

Start a new game. This game should have an ID, which will be our session id. Plus, it should keep track of the list of articles, progress, navigation history, the total number of steps taken, and the difficulty.

Render the first Wikipedia article.

Set up in-article navigation. We need to make sure that the links within the Wikipedia article will properly link back into our app, and not the Wikipedia website itself.

Display information about the game session, such as the objective (start and end articles), number of steps taken, and so on.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.