Create a Clojure project

work in progress, sorry

Create a project for our game.

Create a new project using clj-new alias, found in practicalli/clojure-deps-edn

clojure -M:new practicalli/tictactoe-cli

Open the project in a Clojure aware editor or run a rebel REPL

clojure -M:repl/rebel

Once the rebel REPL is running, load the project and change to the main namespace

(require 'practicalli/tictactoe-cli)

(in-ns 'practicalli/tictactoe-cli)

The default Leiningen template is suitable fine for the project as no additional libraries are used.

lein new tictactoe-cli

Alternatively clone the github repository

You can also clone the tictactoe-cli game from GitHub

git clone

Updating Clojure version and licence

In the project.clj file I have updated Clojure to version 1.10.0 and changed the licence to be the more open Creative Commons license.

(defproject tictactoe-cli "0.1.0-SNAPSHOT"
  :description "TicTacToe game played on the command line"
  :url ""
  :license {:name "Creative Commons Attribution Share-Alike 4.0 International"
            :url ""}
  :dependencies [[org.clojure/clojure "1.10.0"]])

I also removed the license file and added a brief description of the project to the file

results matching ""

    No results matching ""