Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [


{
"name": "clang - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"preLaunchTask": "C/C++: clang build active file"
}
]
}
6 changes: 6 additions & 0 deletions .vscode/python-scene-game/game1_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from scene import *

class Game(Scene):

def setup(self):

46 changes: 46 additions & 0 deletions docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash

#https://medium.com/@hudsonmendes/docker-have-a-ubuntu-development-machine-within-seconds-from-windows-or-mac-fd2f30a338e4

docker run \
--name ubuntu \
-e HOST_IP=$(ifconfig en0 | awk '/ *inet /{print $2}') \
-v /Users/ngcchk/Downloads/_Github/solitaire-cli:/src \
-t -i \
ubuntu /bin/bash

# already root no sudo

#apt-get update
#apt-get install build-essential
#apt-get install libncurses5-dev libncursesw5-dev

#setup UTF-8 still not ok

# dpkg -l locales

#apt-get install locales


#dpkg-reconfigure locales

#apt-get install vim
#.bashrc b

#export LC_ALL=en_US.UTF-8
#export LANG=en_US.UTF-8
#export LANGUAGE=en_US.UTF-8

#locale #to check

#make ascii
#./solitaire

#apt-get install gdb
# not sure about

#solitaire-cli > c4c8
Program received signal SIGSEGV, Segmentation fault.
0x0000564565480953 in is_empty (pile=0x21) at main.c:198
198 int is_empty(pile *pile) { return pile->num_cards == 0; }
(gdb)
1 change: 1 addition & 0 deletions highScore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
700
4 changes: 4 additions & 0 deletions linux/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

10 changes: 10 additions & 0 deletions linux/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CC=cc
sol:
$(CC) -o solitaire -DUNICODE -Wall main.c -lncursesw -ltinfo
debug:
$(CC) -g -o solitaire -DUNICODE -Wall main.c -lncursesw -ltinfo
dascii:
$(CC) -g -o solitaire -Wall main.c -lncursesw -ltinfo
ascii:
$(CC) -o solitaire -Wall main.c -lncursesw -ltinfo

Binary file added linux/core
Binary file not shown.
Binary file added linux/core.1
Binary file not shown.
Binary file added linux/core.2
Binary file not shown.
Loading