HubBasePE 0.0.1b1.dev2__tar.gz → 0.0.1b1.dev3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: HubBasePE
3
- Version: 0.0.1b1.dev2
3
+ Version: 0.0.1b1.dev3
4
4
  Summary: HubBasePE – 2 new programs!!
5
5
  Project-URL: Homepage, https://github.com/Voice659/HubBasePE
6
6
  Project-URL: Issues, https://github.com/Voice659/HubBasePE/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "HubBasePE"
3
- version = "0.0.1b1.dev2"
3
+ version = "0.0.1b1.dev3"
4
4
  authors = [
5
5
  { name="Voice659", email="E.R.Fahretdinov@yandex.ru" },
6
6
  ]
@@ -556,14 +556,10 @@ def Code():
556
556
  else:
557
557
  print("VipAccess = 'F'")
558
558
  print("You shall not pass")
559
- Pass = random.randint(1,20)
560
- if Pass <= 19:
561
- global RA
562
- RestartAttempt = RestAtt = RA = int(RA) + 1
563
- print("Restart №"+str(RA),"initialaizing")
564
- Restart()
565
- else:
566
- print("A bug has occured!")
559
+ global RA
560
+ RestartAttempt = RestAtt = RA = int(RA) + 1
561
+ print("Restart №"+str(RA),"initialaizing")
562
+ Restart()
567
563
 
568
564
  def Restart(): #(16.03.2026)
569
565
  global E_C
@@ -0,0 +1,620 @@
1
+ import time #(16.03.2026)
2
+ import random
3
+ from turtle import *
4
+
5
+ def Enter(): #(13.03.2026)
6
+ VN = "a9.0.2"
7
+ global VipAccess, PassGuess, AdminAccess
8
+ VipAccess = "F"
9
+ Password = str(1041)
10
+ PassGuess = 0
11
+ print("--- HubBase "+VN+" (default, Apr 19 2026, 18:41:07) ---")
12
+ while PassGuess != Password:
13
+ Num = input("Number = ")
14
+ Num2 = input("Number2 = ")
15
+ PassGuess = Num + Num2
16
+ if PassGuess == str(5280):
17
+ print("--Vip level access awarded--")
18
+ print("Pass = 1041")
19
+ VipAccess = "T"
20
+ PassGuess = str(1041)
21
+ if PassGuess == "A52-80A":
22
+ print("--Welcome, Mark--")
23
+ VipAccess = "T"
24
+ AdminAccess = "T"
25
+ PassGuess = str(1041)
26
+ if PassGuess != Password:
27
+ print("Incorrect")
28
+ print("Correct")
29
+ if VipAccess == "T":
30
+ PassGuess = str(5280)
31
+
32
+ def Programm1(): #(15.03.2026)
33
+ print("Hello world")
34
+
35
+ def Programm2(): #(15.03.2026)
36
+ Num = input("Number = ")
37
+ Num2 = input("Number2 = ")
38
+ num = int(Num)
39
+ num2 = int(Num2)
40
+ print(num+num2)
41
+ print(num-num2)
42
+ print(num*num2)
43
+ print(num**num2)
44
+ print(num/num2)
45
+ print(num//num2)
46
+ print(num%num2)
47
+
48
+ def Programm3(): #(15.03.2026)
49
+ Bananas = input("Bananas = ")
50
+ BananasEaten = input("Bananas Eaten = ")
51
+ print(int(Bananas)-int(BananasEaten))
52
+
53
+ def Programm4(): #(15.03.2026)
54
+ Uname = input("What is your name? -- ")
55
+ print("Create a character")
56
+ Cname = input("What is his name? -- ")
57
+ Cage = input("What is his age? -- ")
58
+ Cpower = input("What are his powers? -- ")
59
+ Cweak = input("What are his weaknesses? -- ")
60
+ print("His name is", Cname)
61
+ print("He is", Cage, "years old")
62
+ print("Powers:", Cpower)
63
+ print("Weaknesses:", Cweak)
64
+ print('"'+"Thanks for creating me,", Uname+'"',"- says", Cname)
65
+
66
+ def Programm5(): #(15.03.2026)
67
+ User_reply = input("Do you like robots? -- ").upper()
68
+ if User_reply == "YES":
69
+ User_reply = "Y"
70
+ elif User_reply == "NO":
71
+ User_reply = "N"
72
+ elif User_reply == "MAYBE":
73
+ User_reply = "M"
74
+ if User_reply == "Y":
75
+ print("Beep Boop!")
76
+ elif User_reply == "N":
77
+ print("Well, robots don't like you either")
78
+ global VipAccess
79
+ if VipAccess == "T":
80
+ print("--Vip level access taken--")
81
+ VipAccess = "F"
82
+ elif User_reply == "M":
83
+ print("Make up your mind, human")
84
+ else:
85
+ print("Print('input(something sensible)')")
86
+
87
+ def Programm6(): #(16.03.2026)
88
+ print("You are in a castle of a dragon.")
89
+ DoorChoice = input("There are four doors. Which one do you enter? -- ")
90
+ if DoorChoice == "1":
91
+ print("You found a treasure")
92
+ VipTreasure = random.randint(1,100)
93
+ if VipTreasure > 95:
94
+ print("A Vip password was in it")
95
+ print("It is 5-2-8-0")
96
+ print("You win!")
97
+ elif DoorChoice == "2":
98
+ print("You are quickly attacked by an angry ogre.")
99
+ print("You lose!")
100
+ elif DoorChoice == "3":
101
+ print("You see a sleeping dragon.")
102
+ print("You can...")
103
+ print("...1)Try to steal gold")
104
+ print("...2)Try to escape")
105
+ DragonChoice = input("1 or 2 -- ")
106
+ if DragonChoice == "2":
107
+ print("You were able to escape!")
108
+ print("You win!")
109
+ else:
110
+ print("The dragon wakes up and eats you.")
111
+ print("You lose!")
112
+ if DoorChoice == "4":
113
+ print("You see a sphinx.")
114
+ SPass = str(random.randint(1,10))
115
+ SGuess = input("Can you guess my number.It is inbetween 1 to 10 -- ")
116
+ if SGuess == SPass:
117
+ print("You are freed.")
118
+ print("You win!")
119
+ else:
120
+ print("The sphinx traps you.")
121
+ print("You lose!")
122
+
123
+ def Programm7(): #(17.03.2026)
124
+ aliens = 2
125
+ APass = "ALIENS"
126
+ print("Aliens are invading the earth!")
127
+ print("Activate the defence platform!")
128
+ print("")
129
+ print("------------------------------------------")
130
+ print(" The defence platform ")
131
+ print("------------------------------------------")
132
+ time.sleep(1)
133
+ print("")
134
+ print("------------------------------------------")
135
+ print(" Checking VipAccess ")
136
+ print("------------------------------------------")
137
+ global VipAccess
138
+ time.sleep(1)
139
+ if VipAccess == "T":
140
+ print("VipAccess = 'T'")
141
+ print("--Access granted--")
142
+ print("Password =",APass)
143
+ else:
144
+ print("VipAccess = 'F'")
145
+ APassGuess = input("Please enter the password -- ").upper()
146
+ while APassGuess != APass:
147
+ print("")
148
+ print("INCORRECT PASSWORD")
149
+ print("")
150
+ aliens = aliens ** 2
151
+ print("There are", aliens, "aliens now on earth")
152
+ if aliens > 8000000000:
153
+ break
154
+ print("")
155
+ print("Hint: The thing is attacking us.")
156
+ print("")
157
+ APassGuess = input("Please enter the password -- ").upper()
158
+ if APassGuess == APass:
159
+ print("We won! Hooray!")
160
+ else:
161
+ print("No! The aliens have out numbered us!")
162
+
163
+ def Programm8(): #(18.03.2026)
164
+ GNum = str(random.randint(1,20))
165
+ if VipAccess == "T":
166
+ GPstate = input("Learn correct answer(skips programm)[Y/N] -- ").upper()
167
+ if GPstate != "Y":
168
+ GGuess = input("Can you guess my number. It is inbetween 1 to 20 -- ")
169
+ while GGuess != GNum:
170
+ if int(GGuess) < int(GNum):
171
+ print("Too low")
172
+ else:
173
+ print("Too high")
174
+ GGuess = input("Can you guess my number. It is inbetween 1 to 20 -- ")
175
+ print("Correct!")
176
+ else:
177
+ print("The number is", GNum)
178
+ else:
179
+ GGuess = input("Can you guess my number. It is inbetween 1 to 20 -- ")
180
+ while GGuess != GNum:
181
+ if int(GGuess) < int(GNum):
182
+ print("Too low")
183
+ else:
184
+ print("Too high")
185
+ GGuess = input("Can you guess my number. It is inbetween 1 to 20 -- ")
186
+ print("Correct!")
187
+
188
+ def Programm9(): #(18.03.2026)
189
+ Num = input("Number = ")
190
+ Num2 = input("Number2 = ")
191
+ num = int(Num)
192
+ num2 = int(Num2)
193
+ for Cyc1 in range(num,num2):
194
+ print(Cyc1)
195
+
196
+ def Programm10(): #(18.03.2026)
197
+ TTMN = int(input("What number to muitiply by -- "))
198
+ TTEN = int(input("The final number -- ")) + 1
199
+ for Cyc2 in range(1,TTEN):
200
+ print(Cyc2, "x", TTMN, "=", Cyc2*TTMN)
201
+
202
+ def Programm11(): #(18.03.2026)
203
+ for Cyc3 in range(1,5):
204
+ print("Bleep")
205
+ for Cyc4 in range(1,5):
206
+ print("Bloop")
207
+ print("Bzzzt")
208
+
209
+ def Programm12(): #(24.03.2026)
210
+ print("Create a list with 4 elements")
211
+ print("")
212
+ El1 = input("Element 1 -- ")
213
+ El2 = input("Element 2 -- ")
214
+ El3 = input("Element 3 -- ")
215
+ El4 = input("Element 4 -- ")
216
+ print("")
217
+ print("The list will now change")
218
+ List1 = [El1,El2,El3,El4]
219
+ List1E = [El1,El2,El3,El4]
220
+ print(List1)
221
+ List1[0] = "Change?"
222
+ print(List1)
223
+ del List1[0]
224
+ print(List1)
225
+ List1.append("Change!")
226
+ print(List1)
227
+ Num = random.randint(0,3)
228
+ Num2 = random.randint(1,3)
229
+ Num3 = random.randint(0,2)
230
+ List2 = [List1E[Num],List1E[Num3],List1E[Num2]]
231
+ List1 = List2 + List1
232
+ print(List1)
233
+ print('')
234
+ for Cyc5 in List1:
235
+ print(Cyc5)
236
+
237
+ def Programm13(): #(11.04.2026)
238
+ print("Create a list with 2 elements and 2 keys")
239
+ print("")
240
+ El1 = input("Element 1 -- ")
241
+ El2 = input("Element 2 -- ")
242
+ Key1 = input("Key 1 -- ")
243
+ Key2 = input("Key 2 -- ")
244
+ print("")
245
+ print("The list will now change")
246
+ List1 = {Key1: El1, Key2: El2}
247
+ List1E = {Key1: El1, Key2: El2}
248
+ print(List1)
249
+ List1["Change?"] = "Change!"
250
+ print(List1)
251
+ del List1[Key1]
252
+ print(List1)
253
+ List1[Key2] = "Changeful!"
254
+ print(List1)
255
+ print('')
256
+ for Cyc6 in List1:
257
+ print(Cyc6)
258
+
259
+ def Programm14(): #(12.04.2026)
260
+ alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
261
+ alphabet = alphabet * 2
262
+ STE = input("The string that you want to encrypt -- ").upper()
263
+ Key = int(input("Enter a number between -25 and 25 -- "))
264
+ ES = ""
265
+ for x in STE:
266
+ pos = alphabet.find(x)
267
+ NewPos = pos + Key
268
+ if x in alphabet:
269
+ ES = ES + alphabet[NewPos]
270
+ else:
271
+ ES = ES + x
272
+ print("The message is:", ES)
273
+
274
+ def Programm15(): #(13.04.2026)
275
+ color("blue")
276
+ shape("turtle")
277
+ speed(10)
278
+ pensize(4)
279
+ NoA = int(input("How many sides do you want? -- "))
280
+ Angle = 360 / NoA
281
+ for Cyc7 in range(NoA):
282
+ forward(50)
283
+ right(Angle)
284
+
285
+ def Programm16(): #(15.04.2026)
286
+
287
+ def VShape(size):
288
+ right(25)
289
+ forward(size)
290
+ backward(size)
291
+ left(50)
292
+ forward(size)
293
+ backward(size)
294
+ right(25)
295
+
296
+ def SnowflakeArm(size):
297
+ for Cyc8 in range(4):
298
+ forward(size)
299
+ VShape(size)
300
+ backward(size*4)
301
+
302
+ def Snowflake(size):
303
+ color(random.choice(colors))
304
+ for Cyc7 in range(NoA):
305
+ SnowflakeArm(size)
306
+ right(Angle)
307
+
308
+ colors = ["white","blue","cyan","purple","green","white","white"]
309
+ goto(0,0)
310
+ shape("turtle")
311
+ speed(10)
312
+ pensize(6)
313
+ Screen().bgcolor("turquoise")
314
+ clear()
315
+ NoA = int(input("How many arms do you want? -- "))
316
+ NoS = int(input("How many snowflakes do you want? -- "))
317
+ Angle = 360 / NoA
318
+ for Cyc9 in range(NoS):
319
+ size = random.randint(5,30)
320
+ x = random.randint(-400, 400)
321
+ y = random.randint(-400, 400)
322
+ penup()
323
+ goto(x,y)
324
+ pendown()
325
+ Snowflake(size)
326
+
327
+ def ProgrammP1(): #T1
328
+ import random #(19.03.2026)
329
+
330
+ def Drift(): #(19.03.2026)
331
+ global x, y, z, a
332
+ a = max((y-y*2)*2,z)
333
+ y = random.randint(min(a,y*2),max(a,y*2))
334
+ if y == 0:
335
+ y = 1
336
+ x = x + y
337
+
338
+ def Drift2(): #(19.03.2026)
339
+ global i, o, r, p
340
+ p = max((o-o*2)*2,r)
341
+ o = random.randint(min(p,o*2),max(p,o*2))
342
+ if o == 0:
343
+ o = 1
344
+ i = i + o
345
+
346
+ def ProgrammP1E1(): #(19.03.2026)
347
+ global x, y, i, o, z, r
348
+ Goal = float(input("Set a goal -- "))
349
+ x = int(input("First S.N. -- "))
350
+ y = int(input("First D.N. -- "))
351
+ i = int(input("Second S.N. -- "))
352
+ o = int(input("Second D.N. -- "))
353
+ z = 1
354
+ r = 1
355
+ Opr = 1
356
+ while True:
357
+ Drift()
358
+ Drift2()
359
+ print(x)
360
+ print(i)
361
+ if x > Goal or i > Goal:
362
+ if x > Goal:
363
+ z = -random.randint(1,max(1,y))
364
+ if i > Goal:
365
+ r = -random.randint(1,max(1,o))
366
+ if x < Goal or i < Goal:
367
+ if x < Goal:
368
+ z = random.randint(1,max(1,y))
369
+ if i < Goal:
370
+ r = random.randint(1,max(1,o))
371
+ if x == Goal or i == Goal: #(20.03.2026)
372
+ if x == Goal:
373
+ print("First D reached the goal")
374
+ if i == Goal:
375
+ print("Second D reached the goal")
376
+ break
377
+ Opr = Opr + 1
378
+ if Opr >= 10000:
379
+ print("Fail")
380
+ break
381
+
382
+ ProgrammP1E1() #(19.03.2026)
383
+
384
+ def ProgrammP2(): #T3
385
+ WordLib = ["hi"]
386
+ ES = input("The string that you want to encrypt -- ").split()
387
+ if WordLib != []:
388
+ print("Currently the words are:")
389
+ for Cyc2 in WordLib:
390
+ print(Cyc2)
391
+ Do1 = input("Do you want to add new words?[Y/N] -- ").upper()
392
+ if Do1 == "Y":
393
+ Count = input("How many? -- ")
394
+ for Cyc1 in range(int(Count)):
395
+ NewWord = [str(input("The word? -- "))]
396
+ WordLib = WordLib + NewWord
397
+ NewWord = []
398
+ for Cyc3 in ES:
399
+ if Cyc3 in WordLib:
400
+ pass
401
+ else:
402
+ NewESWord = [Cyc3]
403
+ WordLib = WordLib + NewESWord
404
+ NewESWord = []
405
+ WordLibP = WordLib
406
+ WordLib = WordLib * 2
407
+ CES = []
408
+ for Cyc3 in ES:
409
+ Index = WordLib.index(Cyc3)
410
+ Index = [WordLib[Index + 2]]
411
+ CES = CES + Index
412
+ CESP = ""
413
+ for l in CES:
414
+ CESP = CESP + l + " "
415
+ print(CESP)
416
+
417
+ def CTNP(): #Mainline
418
+ Cstate = input("Continue[Y/N]").upper()
419
+ if Cstate == "Y":
420
+ Cstate = 1
421
+ elif Cstate == "N":
422
+ Cstate = 0
423
+ else:
424
+ print("Choose properly!")
425
+ Cstate = 2
426
+ if Cstate == 1:
427
+ Advance()
428
+ else:
429
+ print("Bye")
430
+ PStop()
431
+
432
+ def Advance(): #Mainline
433
+ Adv = 1
434
+ global Stop
435
+ Stop = 0
436
+
437
+ def PStop(): #Mainline
438
+ global Stop
439
+ Stop = 1
440
+
441
+ def Start():
442
+ ProgrammP1()
443
+ CTNP()
444
+ if Stop == 1:
445
+ pass
446
+ else:
447
+ ProgrammP2()
448
+
449
+ def Code():
450
+ global Stop, VipAccess
451
+ TAEstate = "N" #(15.03.2026)
452
+ EPstate = "N"
453
+ if VipAccess == "T":
454
+ TAEstate = input("Skip procedure[Y/N] -- ").upper()
455
+ if TAEstate != "Y":
456
+ Programm1()
457
+ CTNP()
458
+ if Stop == 1:
459
+ pass
460
+ else:
461
+ Programm2()
462
+ CTNP()
463
+ if Stop == 1:
464
+ pass
465
+ else:
466
+ Programm3()
467
+ CTNP()
468
+ if Stop == 1:
469
+ pass
470
+ else:
471
+ Programm4()
472
+ CTNP()
473
+ if Stop == 1:
474
+ pass
475
+ else:
476
+ Programm5()
477
+ CTNP()
478
+ if Stop == 1: #(16.03.2026)
479
+ pass
480
+ else:
481
+ Programm6()
482
+ CTNP()
483
+ if Stop == 1: #(17.03.2026)
484
+ pass
485
+ else:
486
+ Programm7()
487
+ CTNP()
488
+ if Stop == 1: #(18.03.2026)
489
+ pass
490
+ else:
491
+ Programm8()
492
+ if VipAccess == "T": #(20.03.2026)
493
+ EPstate = input("Skip programms 9-11[Y/N] -- ").upper()
494
+ if EPstate != "Y":
495
+ CTNP()
496
+ if Stop == 1:
497
+ pass
498
+ else:
499
+ Programm9()
500
+ CTNP()
501
+ if Stop == 1:
502
+ pass
503
+ else:
504
+ Programm10()
505
+ CTNP()
506
+ if Stop == 1:
507
+ pass
508
+ else:
509
+ Programm11()
510
+ else:
511
+ pass
512
+ CTNP() #(24.03.2026)
513
+ if Stop == 1:
514
+ pass
515
+ else:
516
+ Programm12()
517
+ CTNP() #(11.04.2026)
518
+ if Stop == 1:
519
+ pass
520
+ else:
521
+ Programm13()
522
+ CTNP() #(12.04.2026)
523
+ if Stop == 1:
524
+ pass
525
+ else:
526
+ Programm14()
527
+ CTNP() #(15.04.2026)
528
+ if Stop == 1:
529
+ pass
530
+ else:
531
+ Programm15()
532
+ CTNP()
533
+ if Stop == 1:
534
+ pass
535
+ else:
536
+ Programm16()
537
+ ProgrammP1()
538
+ CTNP()
539
+ if Stop == 1:
540
+ pass
541
+ else:
542
+ ProgrammP2()
543
+ else:
544
+ pass
545
+ print("") #(16.03.2026)
546
+ print("Stop!")
547
+ print("")
548
+ print("------------------")
549
+ print("Checking VipAccess")
550
+ print("------------------")
551
+ print("")
552
+ time.sleep(1.5)
553
+ if VipAccess == "T":
554
+ print("VipAccess = 'T'")
555
+ Restart()
556
+ else:
557
+ print("VipAccess = 'F'")
558
+ print("You shall not pass")
559
+ global RA
560
+ RestartAttempt = RestAtt = RA = int(RA) + 1
561
+ print("Restart №" + str(RA), "initialaizing")
562
+ Restart()
563
+
564
+ def Restart(): #(16.03.2026)
565
+ global E_C
566
+ if VipAccess == "F":
567
+ Code()
568
+ else:
569
+ Exit_Chioce = E_C = input("Do you want to exit the programm?[Y/N] -- ").upper()
570
+ if E_C == "N":
571
+ PrStart = input("What programm to launch? -- ")
572
+ if PrStart == "2":
573
+ Programm2()
574
+ Restart()
575
+ elif PrStart == "3":
576
+ Programm3()
577
+ Restart()
578
+ elif PrStart == "4":
579
+ Programm4()
580
+ Restart()
581
+ elif PrStart == "5":
582
+ Programm5()
583
+ Restart()
584
+ elif PrStart == "6":
585
+ Programm6()
586
+ Restart()
587
+ elif PrStart == "7":
588
+ Programm7()
589
+ Restart()
590
+ elif PrStart == "8":
591
+ Programm8()
592
+ Restart()
593
+ elif PrStart == "9":
594
+ Programm9()
595
+ Restart()
596
+ elif PrStart == "10":
597
+ Programm10()
598
+ Restart()
599
+ elif PrStart == "11":
600
+ Programm11()
601
+ Restart()
602
+ elif PrStart == "12":
603
+ Programm12()
604
+ Restart()
605
+ elif PrStart == "13":
606
+ Programm13()
607
+ Restart()
608
+ elif PrStart == "14":
609
+ Programm14()
610
+ Restart()
611
+ elif PrStart == "15":
612
+ Programm15()
613
+ Restart()
614
+ elif PrStart == "16":
615
+ Programm16()
616
+ Restart()
617
+ else:
618
+ Code()
619
+ else:
620
+ pass
File without changes