From 7f99d684fa30de3134da87d100a43508c634a40a Mon Sep 17 00:00:00 2001 From: gauthiier Date: Wed, 16 Nov 2016 12:35:23 +0100 Subject: [PATCH] assigment# 3 --- assignments.html | 19 +++++++++++++++---- assignments.md | 22 +++++++++++++++++----- index.html | 2 +- index.md | 2 +- 4 files changed, 34 insertions(+), 11 deletions(-) diff --git a/assignments.html b/assignments.html index 7607692..a3a6c8e 100644 --- a/assignments.html +++ b/assignments.html @@ -18,16 +18,19 @@ -

Assignment #1

+

Assignment #1: Bookstore (CLI)

For this assignment you will be developing a command line interface for a fake "bookstore". Using the node library commander you will make available a command line interface to your program which, when executed, will output information of books that match the following criteria: (1) book title, (2) author name, (3) price, and (4) kind (paperback or hardcover).

In order to gather data for your script, select 5 books from either the Athenaeum Boekhandel or the American Book Center and construct a simple "hardcoded" database out of these (see example from the class).

Below are two examples of inputs and outputs where the data was taken from the Athenaeum Boekhandel

@@ -48,7 +51,7 @@ Kind: Paperback

This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (don't forget your README!) and 3) is the code efficient.

You will hand in your assignment through your account on Github. Please refer to CTH-2016 / Assignments Configuration on how to set up your assignments portfolio properly.

The dues date for this assignment is — Tuesday November 8 2016 at 13:00.

-

Assignment #2

+

Assignment #2: (Love) Letters

In this assignment you will write a script that will generate a love letter each time it is executed, producing similar letters, yet not exactly the same, as the ones of computing pioneer Christopher Strachey's.

The basic sentence structure of your letter will resemble this: "determiner + adjective + noun + adverb + verb + determiner + adjective + noun". Based on this, as an example, your script could output a sentence such as the following: "MY SWEET LONGING BREATHLESSLY ADORES YOUR ANXIOUS WISH". Furthermore, your script should allow for variations of this sentence structure, that is, exclude (or not) certain components depending on randomness and yet keep the sentence grammatically correct. For example the sentence above could become: "MY SWEET LONGING ADORES YOUR WISH".

The output of your script (what is printed on the terminal) needs to be well formatted, meaning that it needs to resemble a letter with margins and spaces. Moreover, the number of sentences and their width needs to be parametric, that is, your script will have options for both number of sentences and sentence width (in characters).

@@ -78,6 +81,14 @@ DEAR DUCK
  • (General) English Grammar
  • Archive of emulated Christopher Strachey's Love Letters
  • +

    Assignment #3: Localhost's Imitation Game

    +

    This assignment is inspired by Alan Turing's Imitation Game and Joseph Weizenbaum's ELIZA.

    +

    You will write a client / server application that puts into conversation a human (client) and a very basic artificial intelligence (server). The idea is to produce a HTML "chat" interface where a human subject can discuss and converse with your server-side script. Your script should be able to recognise certain sentences, phrases or keywords that are sent to it by the human subject and, in turn, reply to these queries appropriately and meaningfully using basic randomly generated sentences (similar to the ones you created in assignment #2).

    +

    A minimum of 3 variation is expected from your script, meaning that it should recognise and reply to at least 3 types of sentences, phrases or keywords.

    +

    Grading

    +

    This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (is the output well formatted) and 3) is the code efficient and generative.

    +

    You will hand in your assignment through your account on Github (as in weeks 1 and 2).

    +

    The dues date for this assignment is — Tuesday November 22 2016 at 13:00.

    \ No newline at end of file diff --git a/assignments.md b/assignments.md index 4a86d57..2431ba5 100644 --- a/assignments.md +++ b/assignments.md @@ -2,7 +2,7 @@ title: CTH-2016 / Assignments --- -## Assignment #1 +## Assignment #1: Bookstore (CLI) For this assignment you will be developing a command line interface for a fake "bookstore". Using the node library [commander](https://www.npmjs.com/package/commander) you will make available a command line interface to your program which, when executed, will output information of books that match the following criteria: (1) book title, (2) author name, (3) price, and (4) kind (paperback or hardcover). @@ -37,7 +37,7 @@ You will hand in your assignment through your account on Github. Please refer to The dues date for this assignment is — Tuesday November 8 2016 at 13:00. -## Assignment #2 +## Assignment #2: (Love) Letters In this assignment you will write a script that will generate a love letter each time it is executed, producing similar letters, yet not exactly the same, as the ones of computing pioneer Christopher Strachey's. @@ -80,8 +80,20 @@ The dues date for this assignment is — Tuesday November 15 2016 at 13:00. * [(General) English Grammar](https://learnenglish.britishcouncil.org/en/english-grammar) * [Archive of emulated Christopher Strachey's Love Letters](http://www.alpha60.de/art/love_letters/archive/muc/) - - - +## Assignment #3: Localhost's Imitation Game + +This assignment is inspired by Alan Turing's [Imitation Game](http://www.loebner.net/Prizef/TuringArticle.html) and Joseph Weizenbaum's [ELIZA](https://en.wikipedia.org/wiki/ELIZA). + +You will write a client / server application that puts into conversation a human (client) and a very basic artificial intelligence (server). The idea is to produce a HTML "chat" interface where a human subject can discuss and converse with your server-side script. Your script should be able to recognise certain sentences, phrases or keywords that are sent to it by the human subject and, in turn, reply to these queries appropriately and meaningfully using basic randomly generated sentences (similar to the ones you created in assignment #2). + +A minimum of 3 variation is expected from your script, meaning that it should recognise and reply to at least 3 types of sentences, phrases or keywords. + +### Grading + +This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (is the output well formatted) and 3) is the code efficient and generative. + +You will hand in your assignment through your account on Github (as in weeks 1 and 2). + +The dues date for this assignment is — Tuesday November 22 2016 at 13:00. diff --git a/index.html b/index.html index a349615..6f820cd 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@

    Each individual assignment will be posted on the day of the class (weeks 1, 2, 3).

    Assessment / Grading

    diff --git a/index.md b/index.md index 77c4b69..8b25844 100644 --- a/index.md +++ b/index.md @@ -129,7 +129,7 @@ During this session, time will be allocated to answer questions regarding final * [Assignment #1: Bookstore (CLI)](./assignments.html) * [Assignment #2: (Love) Letters](./assignments.html) -* Assignment #3: tba +* [Assignment #3: Localhost's Imitation Game](./assignments.html) Each individual assignment will be posted on the day of the class (weeks 1, 2, 3).