Software (Construction)

Today:
Welcome Curriculum vitae Software (Construction)

Software

I have over time developed packages to R that are on my GitHub account. I have devoped packages in the connection with PhD.

R-package at GitHub

Tex-files at GitHub

Tex files (empty for now)

Python code at GitHub

Analysing data in causal inference

causal inference in missing data
DAG
The computer is x and you are o.
a
b
c
d
e
f
g
h
i
j
k
l
m

Playing TicTacToe in R

The game Tic-tac-toe (American English), noughts and crosses (British English). See the website Tic-tac-toe for further information.
Move1 Move2 Move3 Move4 Move5 Move6 Move7 Move8 order
The computer is x and you are o.
To play TicTacToe in R then load the library TicTacToe.
Use the function "StartGame(Numb = "Single")" to play single player against the computer
An example of playing against the computer in TicTacToe:
>library(TicTacToe)
>StartGame(Numb = "Single")
You are Player Two
Select a field: 5
Select a field: 4
Select a field: 2
Select a field: 9
Game over
Draw

In this particular game you play against the computer and the computer is x and you are o. Player 1 begin the game and it is randomized who begin the game. It is not allowed to choose an occupied field. You pick a field by picking a number. The fields are ordered in sequence. The field top left is one and the field top right is three. The field bottom left is seven and the field bottom right is nine. This game was draw. The eight plots show how the game progress over time.
It is also possible to play against your friend by the command "StartGame(Numb = "Twoplayer")".

HelpPackage

python_code

theOracle

soduku

>>> playsoduku(9)
____ _ _ ____ ____ _ __ _ _ / ___ | | | | _ \ / __ \ | | / /| | | | | / | | | | | \ \ / / \ \| |_/ / | | | | | \___ | | | | | | | | | | / | | | | \___ \| | | | | | | | | | |\ \ | | | | \ | | | | | | | | | | | \ \ | | | | ___/ /\ \__/ /| |_/ / \ \__/ /| | \ \ \ \__/ / |____/ \____/ |____/ \____/ |_| \_\ \____/
For every row
Row 1 : 0 3 4 6 7 8 9 1 0
Row 2 : 6 7 0 1 9 5 3 4 0
Row 3 : 0 9 8 3 4 0 5 6 7
Row 4 : 8 5 9 0 6 1 4 2 3
Row 5 : 4 0 6 8 0 3 0 9 1
Row 6 : 0 1 3 9 2 0 8 5 6
Row 7 : 9 6 1 0 3 7 2 0 4
Row 8 : 2 0 0 4 1 9 6 0 5
Row 9 : 0 4 5 0 8 0 0 7 9
                    ___________ ___________ ___________
                   |           |           |           |
                   |  0  3  4  |  6  7  8  |  9  1  0  |
                   |           |           |           |
                   |  6  7  0  |  1  9  5  |  3  4  0  |
                   |           |           |           |
                   |  0  9  8  |  3  4  0  |  5  6  7  |
                   |___________|___________|___________|
                   |           |           |           |
                   |  8  5  9  |  0  6  1  |  4  2  3  |
                   |           |           |           |
                   |  4  0  6  |  8  0  3  |  0  9  1  |
                   |           |           |           |
                   |  0  1  3  |  9  2  0  |  8  5  6  |
                   |___________|___________|___________|
                   |           |           |           |
                   |  9  6  1  |  0  3  7  |  2  0  4  |
                   |           |           |           |
                   |  2  0  0  |  4  1  9  |  6  0  5  |
                   |           |           |           |
                   |  0  4  5  |  0  8  0  |  0  7  9  |
                   |___________|___________|___________|

... and the solution is:
                    ___________ ___________ ___________
                   |           |           |           |
                   |  5  3  4  |  6  7  8  |  9  1  2  |
                   |           |           |           |
                   |  6  7  2  |  1  9  5  |  3  4  8  |
                   |           |           |           |
                   |  1  9  8  |  3  4  2  |  5  6  7  |
                   |___________|___________|___________|
                   |           |           |           |
                   |  8  5  9  |  7  6  1  |  4  2  3  |
                   |           |           |           |
                   |  4  2  6  |  8  5  3  |  7  9  1  |
                   |           |           |           |
                   |  7  1  3  |  9  2  4  |  8  5  6  |
                   |___________|___________|___________|
                   |           |           |           |
                   |  9  6  1  |  5  3  7  |  2  8  4  |
                   |           |           |           |
                   |  2  8  7  |  4  1  9  |  6  3  5  |
                   |           |           |           |
                   |  3  4  5  |  2  8  6  |  1  7  9  |
                   |___________|___________|___________|
Updated: 2020-07-02
Contact me.