mirror of
https://gitlab.rlp.net/mobitar/julia_course.git
synced 2024-11-16 13:28:10 +00:00
Add information about not being able to use readline in Pluto
This commit is contained in:
parent
0aecd74746
commit
3a15f98a4e
1 changed files with 2 additions and 7 deletions
|
@ -220,9 +220,9 @@ md"""
|
||||||
|
|
||||||
**Only for those who have time left and want to try a hard task!**
|
**Only for those who have time left and want to try a hard task!**
|
||||||
|
|
||||||
Now that you know about matrices in Julia, use a matrix to present a XO board.
|
Now that you know about matrices in Julia, use a matrix to present a Tick-tack-toe board.
|
||||||
|
|
||||||
To place a X or O, take the user input for the column and row using the function `readline`.
|
To place `X` or `O`, take the user input for the column and row using the function `readline`. Unfortunately, this does not work in Pluto, so you would have to write a script in a `.jl` file and then run it using `julia FILENAME.jl` in the command line where you replace `FILENAME` with the filename you did choose.
|
||||||
|
|
||||||
Make sure you update the board after the user input.
|
Make sure you update the board after the user input.
|
||||||
|
|
||||||
|
@ -235,10 +235,6 @@ You want more?
|
||||||
*BTW: You can use Julia for AI, so the programming language is not the limitation here* 😅
|
*BTW: You can use Julia for AI, so the programming language is not the limitation here* 😅
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ 2c68b8a0-694b-4be0-9880-657d9ac1ef09
|
|
||||||
# Your code starts here
|
|
||||||
|
|
||||||
|
|
||||||
# ╔═╡ 00000000-0000-0000-0000-000000000001
|
# ╔═╡ 00000000-0000-0000-0000-000000000001
|
||||||
PLUTO_PROJECT_TOML_CONTENTS = """
|
PLUTO_PROJECT_TOML_CONTENTS = """
|
||||||
[deps]
|
[deps]
|
||||||
|
@ -474,7 +470,6 @@ uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
|
||||||
# ╠═53b585dd-aa13-44c1-a3de-988e027ab0c4
|
# ╠═53b585dd-aa13-44c1-a3de-988e027ab0c4
|
||||||
# ╟─b08055c9-b6de-4495-9788-ff79928a85ef
|
# ╟─b08055c9-b6de-4495-9788-ff79928a85ef
|
||||||
# ╟─b6fe803e-1300-4d00-97fa-de6646743f94
|
# ╟─b6fe803e-1300-4d00-97fa-de6646743f94
|
||||||
# ╠═2c68b8a0-694b-4be0-9880-657d9ac1ef09
|
|
||||||
# ╟─a9cadc7e-10ce-4242-82af-2849b5f258f8
|
# ╟─a9cadc7e-10ce-4242-82af-2849b5f258f8
|
||||||
# ╟─00000000-0000-0000-0000-000000000001
|
# ╟─00000000-0000-0000-0000-000000000001
|
||||||
# ╟─00000000-0000-0000-0000-000000000002
|
# ╟─00000000-0000-0000-0000-000000000002
|
||||||
|
|
Loading…
Reference in a new issue