picross-python 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- picross_python-0.1.0/.gitignore +1 -0
- picross_python-0.1.0/Brouillon +7 -0
- picross_python-0.1.0/LICENSE +7 -0
- picross_python-0.1.0/PKG-INFO +134 -0
- picross_python-0.1.0/Picross-game-in-py.py +1022 -0
- picross_python-0.1.0/README.md +125 -0
- picross_python-0.1.0/Todo.md +9 -0
- picross_python-0.1.0/example for basics.png +0 -0
- picross_python-0.1.0/pyproject.toml +19 -0
- picross_python-0.1.0/src/picross_python/__init__.py +0 -0
- picross_python-0.1.0/src/picross_python/cli.py +1022 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.DS_Store
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2026 Jules Lesniak
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: picross-python
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A short description of what picross-python does
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Requires-Dist: keyboard
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
<h1 align="center">Picross python</h1>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<img src="https://img.shields.io/badge/Python-%233670A0.svg?logo=python&logoColor=ffdd54" />
|
|
14
|
+
<img src="https://img.shields.io/badge/Linux-FCC000?logo=linux&logoColor=black" />
|
|
15
|
+
<img src="https://img.shields.io/badge/macOS-000000?logo=apple&logoColor=F0F0F0" />
|
|
16
|
+
<img src="https://custom-icon-badges.demolab.com/badge/Windows-0078D6?logo=windows11&logoColor=white" />
|
|
17
|
+
<img src="https://img.shields.io/badge/License-MIT-green.svg?style=flat&logo=open-source-initiative&logoColor=white" />
|
|
18
|
+
<img src="https://hackatime-badge.hackclub.com/
|
|
19
|
+
U0BJM7Z8MRT/Picross-Python" />
|
|
20
|
+
<br />
|
|
21
|
+
A Picross made in Python with Turtle
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
Picross From Mario's Picross On Game Boy and various picross S games from nintendo switch
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
>[!WARNING]
|
|
28
|
+
>For MacOs must be run as admin with Sudo and accessibility
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
>[!NOTE]
|
|
33
|
+
> Some Picross like 2,7,8 are large (15x15) and can be quite
|
|
34
|
+
> slow for more representative and playable Picross try the 10x10 and 5x5 ones
|
|
35
|
+
|
|
36
|
+
## Base of game
|
|
37
|
+
|
|
38
|
+
### Controls
|
|
39
|
+
|
|
40
|
+
This is a Picross game so you need to know the basics of Picross:
|
|
41
|
+
|
|
42
|
+
You can :
|
|
43
|
+
- Move
|
|
44
|
+
- Place Block (1) and Diamonds(2)
|
|
45
|
+
|
|
46
|
+
(1) - The Block is what you need to place on precise coordinate to make the shape of the Picross and finish the Picross
|
|
47
|
+
|
|
48
|
+
(2) - Technically, the diamond is optional but basically the diamond can helps you figuring out where to place the remainings blocks
|
|
49
|
+
|
|
50
|
+
### Goal of the game
|
|
51
|
+
|
|
52
|
+
In Picross, you have a shape (generally a square) of X*X blocks with numbers on the sides.
|
|
53
|
+
|
|
54
|
+
Each numbers is how many block you have in the line for example :
|
|
55
|
+
|
|
56
|
+
2 3 1
|
|
57
|
+
|
|
58
|
+
This mean in first you 2 consecutives blocks and a void(diamond) of 1 or more after you get 3 consecutives blocks and a void or more and finally one block.
|
|
59
|
+
|
|
60
|
+
### Tips
|
|
61
|
+
|
|
62
|
+
if your grid is for example 10 by 10 and you need just to place 6 blocks , what you can do is count the number of block from each side, and then place block at the overlapping coordinate
|
|
63
|
+
|
|
64
|
+
6 | # # # # # # _ _ _ _ | from left to right
|
|
65
|
+
|
|
66
|
+
6 | _ _ _ _ # # # # # # | from right to left
|
|
67
|
+
|
|
68
|
+
6 | + + + + X X + + + + | only the two at center are overlapping
|
|
69
|
+
|
|
70
|
+
X= blocks (overlapping ones)
|
|
71
|
+
+= non-overlapping blocks
|
|
72
|
+
#= counting block from each side.
|
|
73
|
+
_= No blocks
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
Take your time you are not limited by time
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## Features
|
|
80
|
+
|
|
81
|
+
- Teleport cursor when on the side to get to the other side
|
|
82
|
+
- Blocks and Diamonds
|
|
83
|
+
- Various Picross from 5x5 to 15x15
|
|
84
|
+
- Main menu
|
|
85
|
+
- Selection Menu after finishing a Picross
|
|
86
|
+
|
|
87
|
+
## Included Picross
|
|
88
|
+
|
|
89
|
+
<ol>
|
|
90
|
+
<li>Castle from Picross S (5X5)</li>
|
|
91
|
+
<li>Game Boy from Mario's Picross (15X15)</li>
|
|
92
|
+
<li>Snail from Mario's Picross (10x10)</li>
|
|
93
|
+
<li>Glove from Mario's Picross (10x10)</li>
|
|
94
|
+
<li>Star from Mario's Picross (10x10)</li>
|
|
95
|
+
<li>Spike from Mario's Picross (10x10)</li>
|
|
96
|
+
<li>Burger from Mario's Picross (15X15)</li>
|
|
97
|
+
<li>Phone from Mario's Picross (15X15)</li>
|
|
98
|
+
<li>P like Picross made by myself (5X5)</li>
|
|
99
|
+
</ol>
|
|
100
|
+
|
|
101
|
+
## Quick Start
|
|
102
|
+
|
|
103
|
+
### From source
|
|
104
|
+
|
|
105
|
+
The first way to use my project is to clone the repo and launch it with :
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
git clone https://github.com/C3A5M7/Picross-py.git
|
|
109
|
+
cd Picross-py
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
then install turtle and keyboard:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
pip install turtle keyboard
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
then you can just launch the program with:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
sudo python3 Picross-gamr-in-py.py
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## AI use
|
|
125
|
+
|
|
126
|
+
- As mention above AI was used to help me port picross into list because it would take a lot of time (i still made the plan of list but the value are from the AI and tested after to see if everything was correct)
|
|
127
|
+
|
|
128
|
+
- No other part of the code was made by or assisted by AI
|
|
129
|
+
|
|
130
|
+
- only 2,3,4,5,6,7,8 are ported by AI 1 and 9 are by me
|
|
131
|
+
|
|
132
|
+
## License
|
|
133
|
+
|
|
134
|
+
This project use the [MIT License](./LICENSE), and deserve credit if used in any kind
|