-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Create AREA AI #1868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Create AREA AI #1868
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s take over spaceships
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi ich bin überfordret zur Zeit sorry wenn ich nicht dieseb Ansprüche gerecht werde!
this is the correct code with the better output <title>G.S TOE - Advanced Tic Tac Toe</title> <style> :root { --clr-primary: #4a90e2; --clr-secondary: #f5f7fa; --clr-accent: #ef476f; --clr-bg: #121212; --clr-cell-bg: #1e1e1e; --clr-cell-hover: #333333; --clr-winning: #06d6a0; --shadow-glow: 0 0 18px 5px rgba(6, 214, 160, 0.85); }
G.S TOECurrent Player: X
|
:root {
--clr-primary: #4a90e2;
--clr-secondary: #f5f7fa;
--clr-accent: #ef476f;
--clr-bg: #121212;
--clr-cell-bg: #1e1e1e;
--clr-cell-hover: #333333;
--clr-winning: #06d6a0;
--shadow-glow: 0 0 18px 5px rgba(6, 214, 160, 0.85);
}
box-sizing: border-box;
}
body {
margin: 0;
height: 100vh;
background: radial-gradient(circle at top left, #2c2c54, #121212);
display: flex;
justify-content: center;
align-items: center;
font-family: 'Poppins', sans-serif;
color: var(--clr-secondary);
user-select: none;
}
.container {
background-color: var(--clr-bg);
border-radius: 24px;
width: 400px;
max-width: 90vw;
padding: 35px 30px 50px;
box-shadow:
inset 0 0 40px #223355aa,
0 14px 30px rgba(0,0,0,0.9);
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
margin: 0 0 15px;
font-size: 3rem;
letter-spacing: 3px;
color: var(--clr-primary);
text-shadow: 0 0 16px #4a90e2cc;
font-weight: 700;
}
h1 span {
color: var(--clr-accent);
}
.status {
margin-bottom: 22px;
font-size: 1.25rem;
letter-spacing: 1.1px;
min-height: 32px;
text-align: center;
font-weight: 600;
user-select: text;
}
.board {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 14px;
width: 340px;
}
.cell {
background-color: var(--clr-cell-bg);
border-radius: 18px;
aspect-ratio: 1 / 1;
display: flex;
justify-content: center;
align-items: center;
font-size: 3.8rem;
font-weight: 800;
color: var(--clr-secondary);
cursor: pointer;
box-shadow:
0 5px 16px rgba(0,0,0,0.65),
inset 0 3px 8px rgba(255,255,255,0.08);
transition:
background-color 0.35s ease,
transform 0.3s ease,
box-shadow 0.45s ease;
user-select: none;
position: relative;
}
.cell:hover:not(.disabled) {
background-color: var(--clr-cell-hover);
transform: scale(1.15);
box-shadow:
0 9px 26px rgba(255, 255, 255, 0.3),
inset 0 0 18px 4px var(--clr-primary);
}
.cell.disabled {
cursor: default;
}
.cell.x {
color: var(--clr-accent);
animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
.cell.o {
color: var(--clr-primary);
animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
@Keyframes popIn {
0% {transform: scale(0.3) rotate(90deg); opacity: 0;}
60% {transform: scale(1.3) rotate(-15deg); opacity: 1;}
100% {transform: scale(1) rotate(0deg);}
}
.cell.win {
color: var(--clr-winning) !important;
box-shadow: var(--shadow-glow);
background-color: #064d3e;
cursor: default !important;
animation: glowPulse 1.6s ease-in-out infinite alternate;
transform-origin: center center;
}
@Keyframes glowPulse {
0% {box-shadow: 0 0 12px 4px rgba(6,214,160,0.75);}
100% {box-shadow: 0 0 32px 10px rgba(6,214,160,1);}
}
button.reset-btn {
margin-top: 30px;
padding: 14px 38px;
border-radius: 42px;
border: none;
background: linear-gradient(135deg, var(--clr-accent), var(--clr-primary));
color: var(--clr-secondary);
font-weight: 700;
font-size: 1.2rem;
cursor: pointer;
box-shadow: 0 12px 26px rgba(239,71,111,0.7);
transition: filter 0.3s ease, transform 0.25s ease;
user-select: none;
}
button.reset-btn:hover {
filter: brightness(1.18);
transform: scale(1.07);
}
button.reset-btn:active {
transform: scale(0.95);
box-shadow: 0 7px 15px rgba(239,71,111,0.85);
}
/* Accessibility focus */
.cell:focus-visible {
outline: 3px solid var(--clr-accent);
outline-offset: 5px;
}
/* Current player styling */
.player-x {
color: var(--clr-accent);
}
.player-o {
</style>color: var(--clr-primary);
}
G.S TOE