Skip to content

Commit d4eb1f5

Browse files
committed
redesigned rps
1 parent fb7e886 commit d4eb1f5

File tree

94 files changed

+481
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+481
-172
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

β€Ždumpsite/discord_bot/requirements.txt β€Ždumpsite/discord-bot/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
aiohttp==3.7.3
1+
aiohttp==3.7.4
22
async-timeout==3.0.1
33
attrs==20.3.0
44
chardet==3.0.4
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

β€Žmini-projects/env-editor/README.md

+3

β€Žmini-projects/env-editor/editor.py

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
from PyQt5 import QtCore, QtGui, QtWidgets
2+
3+
4+
class Ui_MainWindow(object):
5+
def setupUi(self, MainWindow):
6+
MainWindow.setObjectName("MainWindow")
7+
MainWindow.resize(800, 600)
8+
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
9+
sizePolicy.setHorizontalStretch(0)
10+
sizePolicy.setVerticalStretch(0)
11+
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
12+
MainWindow.setSizePolicy(sizePolicy)
13+
MainWindow.setLayoutDirection(QtCore.Qt.LeftToRight)
14+
self.centralwidget = QtWidgets.QWidget(MainWindow)
15+
self.centralwidget.setObjectName("centralwidget")
16+
self.Message = QtWidgets.QLabel(self.centralwidget)
17+
self.Message.setGeometry(QtCore.QRect(130, 90, 511, 71))
18+
self.Message.setStyleSheet("color: red;\n"
19+
"border: 1px solid red;\n"
20+
"border-radius: 8px;\n"
21+
"background-color: rgba(245, 72, 66, 0.5);")
22+
self.Message.setAlignment(QtCore.Qt.AlignCenter)
23+
self.Message.setObjectName("Message")
24+
self.title = QtWidgets.QLabel(self.centralwidget)
25+
self.title.setGeometry(QtCore.QRect(250, 10, 241, 71))
26+
font = QtGui.QFont()
27+
font.setFamily("Montserrat ExtraLight")
28+
font.setPointSize(28)
29+
self.title.setFont(font)
30+
self.title.setAlignment(QtCore.Qt.AlignCenter)
31+
self.title.setObjectName("title")
32+
self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget)
33+
self.gridLayoutWidget.setGeometry(QtCore.QRect(130, 210, 521, 131))
34+
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
35+
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
36+
self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize)
37+
self.gridLayout.setContentsMargins(0, 0, 0, 0)
38+
self.gridLayout.setSpacing(0)
39+
self.gridLayout.setObjectName("gridLayout")
40+
self.lineEdit_3 = QtWidgets.QLineEdit(self.gridLayoutWidget)
41+
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
42+
sizePolicy.setHorizontalStretch(0)
43+
sizePolicy.setVerticalStretch(0)
44+
sizePolicy.setHeightForWidth(self.lineEdit_3.sizePolicy().hasHeightForWidth())
45+
self.lineEdit_3.setSizePolicy(sizePolicy)
46+
self.lineEdit_3.setObjectName("lineEdit_3")
47+
self.gridLayout.addWidget(self.lineEdit_3, 2, 1, 1, 1)
48+
self.lineEdit_5 = QtWidgets.QLineEdit(self.gridLayoutWidget)
49+
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
50+
sizePolicy.setHorizontalStretch(0)
51+
sizePolicy.setVerticalStretch(0)
52+
sizePolicy.setHeightForWidth(self.lineEdit_5.sizePolicy().hasHeightForWidth())
53+
self.lineEdit_5.setSizePolicy(sizePolicy)
54+
self.lineEdit_5.setStyleSheet("")
55+
self.lineEdit_5.setObjectName("lineEdit_5")
56+
self.gridLayout.addWidget(self.lineEdit_5, 1, 0, 1, 1)
57+
self.lineEdit_2 = QtWidgets.QLineEdit(self.gridLayoutWidget)
58+
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
59+
sizePolicy.setHorizontalStretch(0)
60+
sizePolicy.setVerticalStretch(0)
61+
sizePolicy.setHeightForWidth(self.lineEdit_2.sizePolicy().hasHeightForWidth())
62+
self.lineEdit_2.setSizePolicy(sizePolicy)
63+
self.lineEdit_2.setSizeIncrement(QtCore.QSize(0, 0))
64+
self.lineEdit_2.setStyleSheet("")
65+
self.lineEdit_2.setObjectName("lineEdit_2")
66+
self.gridLayout.addWidget(self.lineEdit_2, 1, 1, 1, 1)
67+
self.lineEdit_4 = QtWidgets.QLineEdit(self.gridLayoutWidget)
68+
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
69+
sizePolicy.setHorizontalStretch(0)
70+
sizePolicy.setVerticalStretch(0)
71+
sizePolicy.setHeightForWidth(self.lineEdit_4.sizePolicy().hasHeightForWidth())
72+
self.lineEdit_4.setSizePolicy(sizePolicy)
73+
self.lineEdit_4.setStyleSheet("")
74+
self.lineEdit_4.setObjectName("lineEdit_4")
75+
self.gridLayout.addWidget(self.lineEdit_4, 2, 0, 1, 1)
76+
self.label = QtWidgets.QLabel(self.gridLayoutWidget)
77+
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
78+
sizePolicy.setHorizontalStretch(0)
79+
sizePolicy.setVerticalStretch(0)
80+
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
81+
self.label.setSizePolicy(sizePolicy)
82+
font = QtGui.QFont()
83+
font.setFamily("Montserrat Light")
84+
font.setPointSize(10)
85+
self.label.setFont(font)
86+
self.label.setAlignment(QtCore.Qt.AlignCenter)
87+
self.label.setObjectName("label")
88+
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
89+
self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget)
90+
font = QtGui.QFont()
91+
font.setFamily("Montserrat Light")
92+
font.setPointSize(10)
93+
self.label_2.setFont(font)
94+
self.label_2.setObjectName("label_2")
95+
self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
96+
MainWindow.setCentralWidget(self.centralwidget)
97+
self.menubar = QtWidgets.QMenuBar(MainWindow)
98+
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 18))
99+
self.menubar.setObjectName("menubar")
100+
MainWindow.setMenuBar(self.menubar)
101+
self.statusbar = QtWidgets.QStatusBar(MainWindow)
102+
self.statusbar.setObjectName("statusbar")
103+
MainWindow.setStatusBar(self.statusbar)
104+
105+
self.retranslateUi(MainWindow)
106+
QtCore.QMetaObject.connectSlotsByName(MainWindow)
107+
108+
def retranslateUi(self, MainWindow):
109+
_translate = QtCore.QCoreApplication.translate
110+
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
111+
self.Message.setText(_translate("MainWindow", "Could not parse .env file"))
112+
self.title.setText(_translate("MainWindow", "ENV EDITOR"))
113+
self.label.setText(_translate("MainWindow", "KEY"))
114+
self.label_2.setText(_translate("MainWindow", "VALUE"))
115+
116+
117+
if __name__ == "__main__":
118+
import sys
119+
app = QtWidgets.QApplication(sys.argv)
120+
MainWindow = QtWidgets.QMainWindow()
121+
ui = Ui_MainWindow()
122+
ui.setupUi(MainWindow)
123+
MainWindow.show()
124+
sys.exit(app.exec_())

β€Žmini-projects/env-editor/editor.ui

+193
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>MainWindow</class>
4+
<widget class="QMainWindow" name="MainWindow">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>800</width>
10+
<height>600</height>
11+
</rect>
12+
</property>
13+
<property name="sizePolicy">
14+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
15+
<horstretch>0</horstretch>
16+
<verstretch>0</verstretch>
17+
</sizepolicy>
18+
</property>
19+
<property name="windowTitle">
20+
<string>MainWindow</string>
21+
</property>
22+
<property name="layoutDirection">
23+
<enum>Qt::LeftToRight</enum>
24+
</property>
25+
<widget class="QWidget" name="centralwidget">
26+
<widget class="QLabel" name="Message">
27+
<property name="geometry">
28+
<rect>
29+
<x>130</x>
30+
<y>90</y>
31+
<width>511</width>
32+
<height>71</height>
33+
</rect>
34+
</property>
35+
<property name="styleSheet">
36+
<string notr="true">color: red;
37+
border: 1px solid red;
38+
border-radius: 8px;
39+
background-color: rgba(245, 72, 66, 0.5);</string>
40+
</property>
41+
<property name="text">
42+
<string>Could not parse .env file</string>
43+
</property>
44+
<property name="alignment">
45+
<set>Qt::AlignCenter</set>
46+
</property>
47+
</widget>
48+
<widget class="QLabel" name="title">
49+
<property name="geometry">
50+
<rect>
51+
<x>250</x>
52+
<y>10</y>
53+
<width>241</width>
54+
<height>71</height>
55+
</rect>
56+
</property>
57+
<property name="font">
58+
<font>
59+
<family>Montserrat ExtraLight</family>
60+
<pointsize>28</pointsize>
61+
</font>
62+
</property>
63+
<property name="text">
64+
<string>ENV EDITOR</string>
65+
</property>
66+
<property name="alignment">
67+
<set>Qt::AlignCenter</set>
68+
</property>
69+
</widget>
70+
<widget class="QWidget" name="gridLayoutWidget">
71+
<property name="geometry">
72+
<rect>
73+
<x>130</x>
74+
<y>210</y>
75+
<width>521</width>
76+
<height>131</height>
77+
</rect>
78+
</property>
79+
<layout class="QGridLayout" name="gridLayout">
80+
<property name="sizeConstraint">
81+
<enum>QLayout::SetMinAndMaxSize</enum>
82+
</property>
83+
<property name="spacing">
84+
<number>0</number>
85+
</property>
86+
<item row="2" column="1">
87+
<widget class="QLineEdit" name="lineEdit_3">
88+
<property name="sizePolicy">
89+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
90+
<horstretch>0</horstretch>
91+
<verstretch>0</verstretch>
92+
</sizepolicy>
93+
</property>
94+
</widget>
95+
</item>
96+
<item row="1" column="0">
97+
<widget class="QLineEdit" name="lineEdit_5">
98+
<property name="sizePolicy">
99+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
100+
<horstretch>0</horstretch>
101+
<verstretch>0</verstretch>
102+
</sizepolicy>
103+
</property>
104+
<property name="styleSheet">
105+
<string notr="true"/>
106+
</property>
107+
</widget>
108+
</item>
109+
<item row="1" column="1">
110+
<widget class="QLineEdit" name="lineEdit_2">
111+
<property name="sizePolicy">
112+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
113+
<horstretch>0</horstretch>
114+
<verstretch>0</verstretch>
115+
</sizepolicy>
116+
</property>
117+
<property name="sizeIncrement">
118+
<size>
119+
<width>0</width>
120+
<height>0</height>
121+
</size>
122+
</property>
123+
<property name="styleSheet">
124+
<string notr="true"/>
125+
</property>
126+
</widget>
127+
</item>
128+
<item row="2" column="0">
129+
<widget class="QLineEdit" name="lineEdit_4">
130+
<property name="sizePolicy">
131+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
132+
<horstretch>0</horstretch>
133+
<verstretch>0</verstretch>
134+
</sizepolicy>
135+
</property>
136+
<property name="styleSheet">
137+
<string notr="true"/>
138+
</property>
139+
</widget>
140+
</item>
141+
<item row="0" column="0">
142+
<widget class="QLabel" name="label">
143+
<property name="sizePolicy">
144+
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
145+
<horstretch>0</horstretch>
146+
<verstretch>0</verstretch>
147+
</sizepolicy>
148+
</property>
149+
<property name="font">
150+
<font>
151+
<family>Montserrat Light</family>
152+
<pointsize>10</pointsize>
153+
</font>
154+
</property>
155+
<property name="text">
156+
<string>KEY</string>
157+
</property>
158+
<property name="alignment">
159+
<set>Qt::AlignCenter</set>
160+
</property>
161+
</widget>
162+
</item>
163+
<item row="0" column="1">
164+
<widget class="QLabel" name="label_2">
165+
<property name="font">
166+
<font>
167+
<family>Montserrat Light</family>
168+
<pointsize>10</pointsize>
169+
</font>
170+
</property>
171+
<property name="text">
172+
<string>VALUE</string>
173+
</property>
174+
</widget>
175+
</item>
176+
</layout>
177+
</widget>
178+
</widget>
179+
<widget class="QMenuBar" name="menubar">
180+
<property name="geometry">
181+
<rect>
182+
<x>0</x>
183+
<y>0</y>
184+
<width>800</width>
185+
<height>18</height>
186+
</rect>
187+
</property>
188+
</widget>
189+
<widget class="QStatusBar" name="statusbar"/>
190+
</widget>
191+
<resources/>
192+
<connections/>
193+
</ui>
539 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<style>
2+
.rock {
3+
color: rgb(184, 68, 110);
4+
}
5+
.paper {
6+
color: rgb(217, 48, 67);
7+
}
8+
.scissors {
9+
color: rgb(112, 189, 53);
10+
}
11+
12+
.bold {
13+
font-weight: bold;
14+
}
15+
16+
.bold-italic {
17+
font-weight: bold;
18+
font-style: italic;
19+
}
20+
</style>
21+
22+
<p>This is a very entertaining game that provides instant entertainment to users.</p>
23+
<p>This is a game that generates random output which is priority based.</p>
24+
<b style="color:red">Here:</b>
25+
<ul>
26+
<li><span class="rock bold-italic">Rock</span> wins <span class="scissors bold">scissors</span></li>
27+
<li><span class="scissors bold-italic">Scissors</span> wins <span class="paper bold">paper</span></li>
28+
<li><span class="paper bold-italic">Paper</span> wins <span class="rock bold">rock</span></li>
29+
</ul>
30+
v1.0.2
31+
<br>
32+
Β© Shreyam Pokharel πŸ˜‚πŸ˜‚
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<p>This game does not require any mental skill! It is just random play!</p>
2+
<b>Some shortcuts:</b>
3+
<ul>
4+
<li>Ctrl + A = About Us</li>
5+
<li>Ctrl + H = Help</li>
6+
<li>Ctrl + R = Reset Game</li>
7+
<li>Ctrl + Q = Exit</li>
8+
</ul>
9+
<p> Use the three buttons for choosing rock, paper or scissors and
10+
play with the computer!</p>
11+
<h3>Best Of Luck! πŸ‘</h3>

0 commit comments

Comments
Β (0)