create account

RE: A Training Tool for Chess Players Based on Memory Recall by codingdefined

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @programarivm/a-training-tool-for-chess-players-based-on-memory-recall

· @codingdefined ·
$5.59
Thank you for your contribution. I really liked the way you have written everything in the pull requests. As basically it is a CLI tool, is there any way that frontend can call it and get the representation to be shown to the user?

Also, there are a lot of .pgn files are removed from the GitHub. It's better to write those files in the .gitignore.


Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2322222).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
👍  , , , , ,
properties (23)
authorcodingdefined
permlinkre-programarivm-a-training-tool-for-chess-players-based-on-memory-recall-20180825t082151213z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2322222","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-08-25 08:21:51
last_update2018-08-25 08:21:51
depth1
children2
last_payout2018-09-01 08:21:51
cashout_time1969-12-31 23:59:59
total_payout_value4.232 HBD
curator_payout_value1.361 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length841
author_reputation529,663,786,803,491
root_title"A Training Tool for Chess Players Based on Memory Recall"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id69,302,334
net_rshares3,839,964,820,901
author_curate_reward""
vote details (6)
@programarivm · (edited)
Hi @codingdefined, thanks again for the review! Happy to know this post is a bit better than the previous ones.

Good point on the `.pgn` files. I am not convinced that they should be written in the `.gitignore` file though because this data is required by the tests in order to pass OK as shown in https://travis-ci.org/programarivm/pgn-chess/jobs/420206833.

However, the `.pgn` files, which are all included in the `tests` folder, are ignored in the `.gitattributes` file:

```
/examples/      export-ignore
/resources/     export-ignore
/tests/         export-ignore
.editorconfig   export-ignore
.gitattributes  export-ignore
.gitignore      export-ignore
.travis.yml     export-ignore
```

This way the `tests` folder is not installed locally when doing

```
composer require programarivm/pgn-chess
```

Let me show you something regarding the frontend. I wrote [this prototype](https://github.com/programarivm/react-pgn-chess) with [React](https://reactjs.org/) and [ReactPHP](https://reactphp.org/) -- the frontend prototype is still sketchy, needs some improvement.

Anyway, here is how the React frontend uses the ReactPHP chess server:

```
import React from 'react';
import ReactDOM from 'react-dom';
import Board from './components/Board.js';
import './index.css';

var BoardElement = React.createElement(Board, {server: "localhost:3001"});

ReactDOM.render(
  BoardElement,
  document.getElementById('chess-board')
);
```

The server looks like this:

```
namespace ReactPgnChess;
use Ratchet\Server\IoServer;
use Ratchet\Http\HttpServer;
use Ratchet\WebSocket\WsServer;
use ReactPgnChess\PgnChessGame;
require __DIR__  . '/../vendor/autoload.php';
$server = IoServer::factory(
    new HttpServer(
        new WsServer(
            new PgnChessGame()
        )
    ),
    3001
);
$server->run();
```
properties (22)
authorprogramarivm
permlinkre-codingdefined-re-programarivm-a-training-tool-for-chess-players-based-on-memory-recall-20180825t091333864z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["codingdefined"],"links":["https://travis-ci.org/programarivm/pgn-chess/jobs/420206833","https://github.com/programarivm/react-pgn-chess","https://reactjs.org/","https://reactphp.org/"],"app":"steemit/0.1"}
created2018-08-25 09:13:33
last_update2018-08-25 11:26:54
depth2
children0
last_payout2018-09-01 09:13:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,813
author_reputation2,631,258,794,707
root_title"A Training Tool for Chess Players Based on Memory Recall"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id69,305,423
net_rshares0
@utopian-io ·
Thank you for your review, @codingdefined!

So far this week you've reviewed 3 contributions. Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-programarivm-a-training-tool-for-chess-players-based-on-memory-recall-20180825t082151213z-20180825t102509z
categoryutopian-io
json_metadata"{"app": "beem/0.19.42"}"
created2018-08-25 10:25:09
last_update2018-08-25 10:25:09
depth2
children0
last_payout2018-09-01 10:25:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length116
author_reputation152,955,367,999,756
root_title"A Training Tool for Chess Players Based on Memory Recall"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id69,309,893
net_rshares0