#Lambda Expression
Explore tagged Tumblr posts
Text
Java Lambda – Here Is The Reason Why Java 8 Still Slays! - SynergyTop

Unlock the potential of Java 8 with SynergyTop’s blog: ‘Java Lambda — Why Java 8 Still Slays!’ Explore core features like lambda expressions, method references, and the Stream API. Witness enhanced development efficiency and learn the syntax of Java Lambda expressions. Our verdict? Java Lambda boosts performance without compilation.
#Synergytop#Java Lambda#Lambda Expression#Lambda Function Java#Java Lambda Expression#Java 8 Features
0 notes
Text
The new and significant lambda expression feature of Java was added in Java SE 8. It offers a simple and direct approach to using an expression to represent one method interface. In a library's collection, it is quite helpful. It is advantageous to filter, iterate, and extract data from a collection.
1 note
·
View note
Text
//Pixel doll Lambda yet again but also kind of not! (picrew link)
#//made a good choice in checking on this site again because hey! it's more of these!#//items are somewhat limited but the items that are on this pic.rew is all good stuff#//ANYWAYS LOOK AT HIM#//HE LOOKS SO GOOD IN THIS#//LOVE HIS LITTLE EXPRESSION IN THIS AND THE HAIR? VERY VERY FITTING FOR LAMBDA BGHNGFGNJ#//BLASTING YOU ALL WITH THE PIXEL DOLL BEAM#boredom killer {dash games}
4 notes
·
View notes
Text
Dear reader, did I think to myself, "hey, so writing in a notion database per this advice seems like an interesting idea but slightly unwieldy because there appears to be no option to export all the scenes to a single document (if you choose markdown, which I prefer, each scene is exported to a separate markdown file in a subfolder), but wouldn't writing a python script to merge all those exported files in order be pretty simple?" and proceed to actually do that for about an hour, on the off chance that I hypothetically ever try to follow this writing advice, instead of doing any actual writing? Yes. Yes I did.
#musings#i say as if i will ever finish that one supercorp fic i've been “writing” for *checks notes* 6 years at this point#my skill level in python is very much “fumbling in the dark while searching for the most basic shit that i can never remember”#like how to construct a lambda expression -- but the internet provides and somehow i DID manage to cobble something together that works!#which has left me feeling somehow simultaneously extremely productive and the least productive person on the planet
2 notes
·
View notes
Text
A Trickle or a Flood! Java Stream Basics
Java streams and the corresponding operation pipelines are useful to perform calculations and transformations on collections, ranges and other types of related inputs. #java #streams #lambdaExpressions #pipelines
TIP: References Quick List Java: Lambda Expressions Javadoc: Package java.util.function Javadoc: package java.util.stream Javadoc: IntStream Table of Contents Table of ContentsIntroductionCreating A Basic StreamLazy Intermediate Stream Operations Side EffectsFilteringMapping Items MapFlatMapMap to PrimitivesSortingRemoving DuplicatesTerminal Operations Reducing a Stream to a Single OutputFirst…
View On WordPress
0 notes
Text
Mastering Func and Action in C#
Mastering Func and Action in C Have you ever found yourself in a situation where you needed to pass a block of code as a parameter to a method? Or have you wished for a more concise and expressive way to define and use delegates in C#? If so, then Func and Action are the tools you need. What are Func and Action? In C#, Func and Action are generic delegates that allow you to define and use code…
View On WordPress
0 notes
Photo
#this was supposed to be like.. symbolic kind of LOL idk if it came out exactly that way tho #like i wanted to portray him as himself ready to die beyond the gates #but then that door he was told to wait in opens and the light is like a depiction of a new opportunity to live #smth like that
Unexpected encounter at the face of death
#I feel that op#love the way you have him sink to his knees due to being overwhelmed by it all#because he had been mentally preparing himself to die over the past two days#and up until roughly five minutes ago he still believed he would#and the weight of that is so 𝘱𝘢𝘭𝘱𝘢𝘣𝘭𝘦‚ not only in the slumping forward of his body but his expression too#how wide-eyed he looks and the way his brows are furrowed not in anger but in confused relief as he tries to make sense of it#the force of such a revelation not only blowing his hair and body back‚ one of his arms being carried away from him#but lifting the blood and decay that figuratively stains the floor of the gate due to all the lives lost there before being carried off#he should feel guilty about how he was spared‚ and yet in the moment he can't after how desperately he wanted (still wanted) to live#adore the effects of the lighting as well‚ from the halo effect around the corner#to the way you have it hit his clothes and the resulting shadows#also before I read the tags I thought this was his realization of the horror of Lambda#upon seeing the experiments on his walk to his new bedroom or the testing room for the first time#that staggering realization of the depths of cruelty of the scientists and demons alike‚ at the carnage around him that he's spared from#I like both#tl;dr ty for sharing your work even years later it's appreciated 🤍🤍#Search for Minerva Arc#TPN 074#Norman#Fave#asteraws#the promised queueland
131 notes
·
View notes
Text
The Cadence of Part-Time Poets
The Cadence of Part-Time Poets by @motswolo
Have been working on this 10 volume set for the past few months now, and they are finally complete. My Magnum Opus. I have peaked and probably depleted all of my brain power.
Thank you to @motswolo for writing such a beautiful story. My brain chemistry has been favourably altered. Will forever flinch when I hear Queen, The Beatles or Bob Dylan. Love to you from western Canada (west coast best coast lets gooooo).
I also posted a TikTok Reel of these since posts here are limited and I love the insides as much as the covers, so if you wanna see between the pages, here’s that.
Also thank you @avisbindery for letting me scream and cry in your DMs while I read the fic. May you get some uninterrupted sleep now LOLLL.
Going to write a whole essay below about the ideas and details because uhhh I wanna yap bit!
So for starters, I wanted to make these binds look like magazines because of the epilogue where (spoiler) Tonya sees Remus in a copy of New Musical Express. But of course this fic is long, so I was like, what if I do multiple volumes? This very quickly spiralled into me painstakingly (finding publication-accurate fonts almost sent me to an early grave) recreating 10 different music-focused magazines from the 70s and 80s from scratch (thank you to Photoshop, Affinity, Procreate and Canva). Each volume features a unique cover, along with stylized typesets to match that display the songs for each chapter but in different designs. And then I went a little crazy and made a 45 sleeve and a cassette too, to really set the scene when I took the photos lol
While the covers display the dates pertaining to the contents of that particular volume (Sept 1975 for volume one, for example) I was thinking about what the magazines would say if they were really published when Marauders are traipsing about being spectacular and famous in the future. I sprinkled in details from the fic itself and fanon-ed it a bit, but that was the general inspiration :-) Tried to keep the photos used either faceless/obscured, or to use the fancasts on Mots’ Cadence master post. I also tried to use period-accurate photos but didn’t always succeed, so settled for photos of 4 member bands where I had to :”) But the general intent with the facelessness was that they could be implied to be Marauders. If you squint? lol. Just pretend. Pls.
Volume One: Based upon The Record Song Book. This magazine went on to inspire the typesets, since it publishes lyrics and such. The cover images are of Spacey Jane and David Thewlis.
Volume Two: Based on ZigZag, specifically the issue from July 1978 featuring Siouxie and the Banshees just because I thought it looked sick as fuck. I re-drew the abstract shapes and such in procreate. The cover images are The Clash and a young Gary Oldman. Lord he was foiiine.
Volume Three: Based on Trouser Press, November 1980. The cover images are a young Metallica, and my personal fav fan cast for James, Reiky De Valk. The film negatives are from a Bruce Springsteen tour, 1976.
Volume Four: Based on Gay Times (November 1984), a queer magazine from the UK because this volume contains Wolfstars first kiss hehe. Also hence Somebody To Love plastered all over the covers. The Front cover is Inhaler. The “4A” on this one is of course the boys’ dorm number, but I made the A the lambda symbol as this was a pride symbol in the 70s after Stonewall.
Volume Five: Based on Melody Maker. Front image is Alex Turner. All of the text on this one is pulled directly from the fic. The scene where they all drop acid and James jumps off the roof Almost Famous style had me hootin’ and hollerin’… until Tomny showed up hahaha :”)
Volume Six: Based on IT (International Times, Aug 1971). Front image for this one is Joy Division, and the back features Jane Asher for Lily
Volume Seven: Based on Record Mirror, June 1976. Front image is John Taylor of Duran Duran. Yum.
Volume Eight: Based on Rolling Stone. More vibes than anything for this one, but the quote still makes me laugh. Front image is of Matt Hitt. Can you tell I photoshopped a cell phone out of this one? IDK. This photo just screamed ‘Remus’ to me so I had to use it. The back image is an old cigarette ad, but the photo is taken in Shepherd’s Bush.
Volume Nine: Based on Fusion magazine. Front image for this one is once again Inhaler. Oops. Back cover is our gals. Images are Jodie Foster as Cherry, Brenda Sykes as Mary, and Goldie Hawn as Lottie.
Volume Ten: Based on New Musical Express. You know why :”) These are all victims of fanon, but this one especially. I wanted it to be NME instead of the re-invented logos I’d been doing for all the rest, as I wanted it to look like the magazine the Sister gives to Tonya. I referred to an issue of NME from October 1979 for this and layered in fic references where it made sense to. The cover image for this one is (I think) Cigarettes After Sex. This issue also contains all of the B-Side chapters, and the Marauders song lyrics too just for fun :)
Slasher Chick: This is just my take on what Sybill’s zine could’ve looked like. Prob way off but I just wanted to have fun with this one since I had no cover to reference lol. The zine contains her little write-up and the interview, lifted straight from the fic :")
ok yap sesh over byeeeeeeeeeeeeeeee lmfaooooo
#fic: the cadence of part-time poets#motswolo#wolfstar#fanfic#sirius black#remus lupin#james potter#peter pettigrew#regulus black#mybinds#bookbinding#tcoptp#coptp#the cadence of part time poets#marauders#moony#padfoot#my binds
1K notes
·
View notes
Text
cat parents | dr. ratio & aventurine
!! polyamory !!
caritas, poker, and snuggle.
anyone could tell who named what cat, and which cat cake was who's favorite.
.
caritas was veritas' favorite, the name being an old language word meaning ' love ' although he wouldn't really admit to it. he'd told you that the cat's original name - or rather, it's classification, was lambda's friend, with blue skin and black and white filling. but the cat cake had a little gold flower on the side of it's head, too, which reminded him of himself.
caritas loves to chat with the other cat cakes. its the kind of cat that makes friends with other really quickly, so it's always chatting with poker and snuggle about something throughout the day. their conversations can range from anything about how warm the bed is to the best spot in the living room to see the three of their owners dancing together in the kitchen with music while you were trying to make dinner.
ratio absolutely loved to note down their conversations whenever present. it surprised him that such a creature was so articulate, even able to properly express its desires. he'd concluded that the cat cakes had the intelligence of a young toddler with a rudimentary but understandable grasp on language. you and aventurine liked to tease him sometimes for treating the cat cakes as children sometimes, trying to teach them as a parent would, although this was something that ratio would deny wholeheartedly.
" they are an interesting new species. they are ruan mei's creations, and yet she doesn't seem to understand their full potential. i believe it's imperative that we study them and possibly teach them things they otherwise wouldn't know without our interventions, " ratio reasoned, while he was holding the little cat cake, cradling it like it was something precious to him.
.
poker was aventurine's, the name coming from one of his favorite card games to play, even though he rationalized it by saying that the cat was particularly swatty and liked to cause trouble by batting at things off of the edge of tables. " it likes to poke things until it drops off of the table, so the name poker makes sense, doesn't it ? " yeah, okay aventurine, whatever you say.
poker loved to meow in the dead of night and startle everyone out of sleep in the most inopportune times. ratio has a lecture early in the morning for the intelligentsia guild ? poker is making it's boredom everyone's problem. aventurine has a meeting with the other stonehearts ? oh boy, poker is right there sitting on his face meowing incessantly. if you've got something important to do, well, sorry to say you won't be getting very much sleep that night no matter how early you go to bed. it was bratty, sure, but it was ultimately just an average grey cat cake with nothing special about it, and seemed to have an overwhelming fear of being left alone.
no matter how annoying the cat cake was being that particular night, there was only one way to stop it from meowing. of course, ratio tried to reprimand it and teach it other ways to relieve its boredom at night, but nothing proved effective. you would just try to get it to calm down by playing with it for a little while, but that really only worked until you left it alone, and then it went right back to meowing. aventurine, however, had the magic touch. he would grab the cat cake and bring it into bed, and he would just.. talk to it. in a quiet voice, just chatting about whatever popped up into his head. he'd talk for an hour or more. sometimes it was about sigonia, sometimes it was about his job as a stoneheart. sometimes it was just different gambles and how he ended up winning them.
" so, of course, i had to prove that i was much more than he gave me credit for, " aventurine had been yapping for about an hour now, when he looked down at the cat cake in his arms and realized that it was sound asleep, purring against his chest. " ah, looks like i've done it again. you're welcome, you two. "
" thank you, 'churine, " you mumbled, half asleep as you leaned over to him and pressed a kiss on his cheek, your head falling back down to rest on his shoulder, already falling back asleep. ratio didn't say anything, and when aventurine looked over at him, he couldn't help but smile. he'd put ratio asleep while just chatting, too.
.
snuggle was your trash cake cat, and there was really no deeper meaning behind the name. it was a snuggly cat, and loved attention. loved anyone and everyone who was willing to give it attention. sometimes you would wake up with it resting on your chest, sometimes you would see ratio lazily carrying snuggle around, and other times aventurine was playing with it making it chase a feather around. snuggle was the attention whore of the trio.
snuggle loved to follow you wherever you walked, especially to the bathroom. whether you were getting ready for the day or just trying to spend a few minutes doing human business, you had a pair of eyes watching over your ever move, making sure that you were never far from its sight, almost like it was protective over you. you couldn't help but compare it to your two partners, lord knows how often they were checking up on you in their own ways. ratio wasn't afraid of shooting you a text whenever he had a free moment while you were away to make sure you were okay, and aventurine was constantly on the phone with you through his headpiece.
" snuggle, i'm just going to the bathroom ! it's okay, really- " you gently protested, earning a small mew from the cat cake as it followed behind you into the bathroom, sitting patiently at the doorway, waiting for you to get finished with your business.
" hey, darling, i'm home from work ~ guess who i dragged back home with me after his lecture. " aventurine called out for you almost immediately, followed by the quieter voice of ratio announcing his presence as well.
you rolled your eyes at your partners immediately calling for you, your heart swelling with love for them, washing your hands as you walked out of the bathroom, snuggle hot on your tracks. " welcome back, guys. all of the cat cakes have been taken care of, and i started dinner. "
" thank you, i'm sure dinner will be pleasant as always, " veritas hummed, his briefcase still in his hand as he leaned down to kiss you on your lips.
" what would we do without you ? " aventurine weaseled his way in between you two, mostly because he also wanted to get his after work love from you.
.
a chatty cat cake with more intelligence that it originally seemed, a cat cake that needed to be calmed down when everyone left it alone with its thoughts, and a protective cat cake that enjoyed attention and making sure that those around it was okay.
maybe these were the perfect cat cakes for you three.
#honkai star rail#dr ratio#hsr fanfic#veritas ratio#honkai sr#honkai star rail x reader#x reader#dr ratio x reader#aventurine x reader#dr ratio x aventurine#hsr aventurine#aventurine honkai star rail#aventurine hsr#star rail aventurine#ratiorine#ratiorine x reader#aventurine x ratio x you#polyamory#nonmonogamy
776 notes
·
View notes
Note
Inked insect I want you to know that everytime you post I get filled with joy and excitement your art is amazing and real nice to look at. Also everytime I get a notification from The Lambda Archives I also get rlly rlly excited bcuz it's one of the best AUs ever and all you've been doing with it, the symbolism, the entities, everything is real clever and fits so well it's really exciting.
Continue being awesome
AAAHHHH TYYSMM!!! I genuinely cannot express enough how happy I am that people are liking la:ai!! 🥹
Anyways here’s a sneak peek to the TRUE lambda archives ending
#hlvrai#half life#gordon freeman#benrey#hlvrai fanart#half life vr but the ai is self aware#barney calhoun#lambda archives : ai#gordon la:ai#la:ai ep 4#edit.txt#hlvrai au#doodle#ask#answer#anon#inkzectz
334 notes
·
View notes
Text
watching my boss, who i adore and worship, reunite with two children i've never met and who are so happy they're bawling their eyes out upon seeing him due to thinking he was dead for nearly two years; one of them slaps him
cw// the promised neverland season 2

sorry for the jumpscare felt a little silly
#yeah man kldjkgfdjsfjld#his expression kills me he is just so fucking gone#subdued live slug reaction#i love the joke that Ray slaps Norman harder in the manga bc the squad wasn't around#bc he knew they'd beat him up for knocking Boss to the ground in that incarnation#here tho? ldfjlfsdkj;l#I do like Cislo in green though#King of Paradise Arc#TPN 113#TPN S2#TPN S2e06#Lambda Gang#Vincent#Zazie#Cislo#Barbara#Full Score Trio#FSS Shenanigans
87 notes
·
View notes
Text
chances
(frat!kyle spencer x fem!reader)
content: fluff, angst (if you squint?), mentioned sexual harassment (by frat members)
a/n: not proofread, short drabble inspired by this post, wrote it really fast so sorry if it's not the best (it's my first time writing for kyle too so)! also, the last line is sick I'm aware I'M SORRY RYAN MURPHY POSSESSED ME
when your boyfriend kyle told you that he was joining the fraternity kappa lambda gamma you seriously thought he was joking. kyle was caring, hard-working, kind. yeah, he liked to joke around, but he was nothing like those greek alphabet degenerates you associated frats with. you told him this earnestly. it wasn't just a passing judgment, it was a genuine concern for him. trapped in a house with all those guys? kyle could handle himself well growing up in the 9th ward, but these frat guys were different to the types of people he was used to dealing with. you didn't want to see him to get hurt, or worse... start becoming like them.
when you expressed your feelings to him, kyle (of course politely) brushed your concerns off.
"give em' a chance..." he told you, caressing your head in his lap. "they're not all as bad as ya think. and even some of em' that are a bit.. y'know.. they're good people at heart, i can tell. they just hafta be put in the right direction."
"and is that why you're gonna try and become president?"
"yep! kappa lambda gamma has the potential to be one of the best chapters tulane has ever seen. that, and it gets ya some pretty awesome connections"
he was right.. a lot of past frat members had become pretty successful and kyle could use that to his advantage.
"okay fair... just, be safe okay? stick to what you know- who you are"
"oh i f'sure will" he flashed a knowing smile, leaning in to plant a tender kiss on your lips. your hands found their way into his golden curls, drawing him closer for a deeper connection.
as if on cue, the moment kyle pulled away, his phone began to ring. he glanced at the screen, and an apologetic smile appeared on his lips as he answered the call, shifting slightly as if bracing for what was coming.
"whoa, whoa, whoa, ma, slow down. what's going on? i’m at a—" he hesitated, casting a quick glance your way, "—at a friend’s, i told ya already... yeah, i’ll be home soon... what? right now?" there was a brief pause before he sighed. "okay, ma. love you too."
as kyle lowered the phone, you let out a soft sigh, already knowing what was coming. "gotta go, huh?"
"yeah, i’m sorry, baby..." he took your hand gently, lifting it to his lips in one smooth motion, the warmth of his breath tickling your skin before his lips brushed your knuckles. his fingers slid between yours, intertwining, and then he leaned in close, pressing a lingering kiss to your temple. "i’ll see you on campus, okay?"
you nodded, trying to mask the disappointment tugging at your chest. "mhm… see you," you murmured, sitting up and watching him leave.
--
"oh my god" your jaw dropped as kyle stepped out of the bathroom. you had gone to surprise him after move-in day, wanting to see how he was adjusting to the frat life. and oh boy did he adjust. he had the blue embroidered polo with the collar obnoxiously flipped up, a white long sleeve underneath it, rolled up to the elbows, even-
"your hair!" you gasped. kyle's once luscious curls you loved to run your hands through had now become flat and side-swept. you silently cursed yourself for ever teaching him how to use a flat iron so he could help you do your hair.
"well y'know you could say hi-" he chuckled, enjoying your reaction to his new look. "like it?"
to be honest, you didn't hate it, as much as you wanted to. kyle had a way of making anything look good. it was more what it represented that made your stomach churn.
"you certainly look the part" you said, forcing a half-smile. "all you need now is a backwards cap and a blood alcohol content of .12%"
he laughed, walking over and nudging your arm. "c'mon babe. open mind, remember?"
you sighed. "right... open mind" you glanced over him again, noticing how the fabric of his clothes hugged his frame in a way that accentuated his muscles. "okay.. you do look really hot i'm just wor-"
"gonna stop ya right there." he gently placed a hand on your arm, giving you a warm smile. "thank you. i'm happy ya came."
"i'm... happy i'm here- well, with you anyway" you couldn’t help but let the corners of your mouth lift. kyle just had that effect on you.
"..seriously though," you started again, looking into his eyes with a hint of concern.
kyle’s expression softened as he wrapped an arm around your lower back. "i promise it's stoppin' here, alright? all this… it's just surface level. you still have me." he gestured vaguely to his clothes and hair. "this is still the same me."
you held his gaze, trying to believe him, though a small part of you still worried that he may fall in too deep.
"please baby, give em' a chance..."
"what kind of chance?" you looked up at him, raising an eyebrow. "because i was violated like three different ways just walking up to your room." the words came out half-joking, but there was an edge to your tone that kyle didn’t miss.
he straightened up, eyes narrowing, and his brow furrowed with a fierce protectiveness. "what happened?"
"i'm kidding... kinda. nothing crazy just a few wandering eyes" you waved it off, though the memory of being looked up and down like that made your skin crawl for a second.
"i'll talk to em' about it. if they say or do anything else, tell me. i'll cut their fuckin' balls off" his voice was serious, and though he didn't mean it literally, you knew he would go to war for the people he cared about.
"as long as i get to watch," you giggled, leaning into him a little more.
"...any chance you’ll stop using that flat iron, though?" you asked, giving his new hairstyle a gentle tease, still missing the curls that used to frame his face.
"when i'm dead." he chuckled with a cocky grin.
"we’ll see about that."
--
tags (ask to be added or removed anytime!): @fear-is-truth @juliamaximoff @jazz-berry @violetsghosts @heartz4peter
#guys idk what this is#i keep laughing at the last line nooooo#evan peters#evan peters fanfic#kyle spencer#kyle spencer x reader#frat!kyle spencer#ahs#ahs coven#american horror story#pre-death!kyle spencer#evan peters fandom#evan peters imagine
240 notes
·
View notes
Text

//Couldn't find the other post but mech armor GOOOO
#//THIS SKETCH TURNED OUT SO CUTE OH MY GOSH#//loved how his expression turned out here#//lambda and his clunky armor he picked out himself send post#back at it again! {art}
6 notes
·
View notes
Text
//Ough, the way hunger could be a theme for this guy.
#//yeah literal hunger is a thing for lambda#//high metabolism and he burns through calories fast so ofc he’s always going to be some degree of hungry#//but he’s hungry in so many other ways#//a slight itching for power when he was younger (if only so he could get people to back off)?#//battle?#//love? touch?#//blood?#//openness to be himself wholly and express it without someone making it a problem?#//a taste for the unknown?#//so many things he craves and he’s got a palate big enough for them all#//not to sound like an absolute doofus in the tags but you see the vision right?#//LITERAL AND METAPHORICAL HUNGER WOOO#//anyways grhrgwjhs#backup log {ooc}
2 notes
·
View notes
Text
Feeling inspired by a post I saw a few months ago, I programmed a simple game of tic-tac-toe in python, in a single expression. Like regular functional programming, this means I can't mutate variables. But more than functional programming, this also means I can't
Declare variables at all
Declare functions
Use most loops and branch structures
The resulting program is 1730 characters long after removing all the non-strictly necessary whitespace and contains "lambda" 9 times.
The players are asked where they want to play using a number for each cell, in the configuration of a standard numpad. The program checks for invalid input too.
Source code under the cut
(lambda grid,toggle,players,cells_filled,print_grid,check_victory,ask_xy,validate_input,the_game:(lambda victor:print('=====\n'+('Draw.'if victor is None else f"{victor} wins!")))(the_game(grid,players,cells_filled,toggle,print_grid,check_victory,ask_xy,validate_input,the_game)))([[7,8,9],[4,5,6],[1,2,3]],True,['X','O'],0,lambda grid:print('\n'+'\n'.join(' '.join(map(str,ligne))for ligne in grid)),lambda grid,players:([player for player in players if any(set(grid[i][col]for i in[0,1,2])=={player}for col in[0,1,2])or any(set(grid[row])=={player}for row in[0,1,2])or set(grid[i][i]for i in[0,1,2])=={player}or set(grid[i][2-i]for i in[0,1,2])=={player}]+[None])[0],lambda players,toggle,grid,ask_xy,validate_input:validate_input(input(f"{players[toggle]}, place your symbol: "),grid,players,toggle,ask_xy,validate_input),lambda selection,grid,players,toggle,ask_xy,validate_input:(lambda selection,grid,players,toggle,ask_xy,validate_input:(selection%3,2-selection//3)if grid[2-selection//3][selection%3]not in players else ask_xy(players,toggle,grid,ask_xy,validate_input))(int(selection)-1,grid,players,toggle,ask_xy,validate_input)if len(selection)==1 and'0'<selection<='9'else ask_xy(players,toggle,grid,ask_xy,validate_input),lambda grid,players,cells_filled,toggle,print_grid,check_victory,ask_xy,validate_input,the_game:(print_grid(grid),the_game((lambda players,toggle,xy,grid:[[players[not toggle]if(j,i)==xy else grid[i][j]for j in[0,1,2]]for i in[0,1,2]])(players,toggle,ask_xy(players,not toggle,grid,ask_xy,validate_input),grid),players,cells_filled+1,not toggle,print_grid,check_victory,ask_xy,validate_input,the_game)if check_victory(grid,players)is None and cells_filled<9 else check_victory(grid,players))[1])
If you can't read any of this, don't worry, I can't either.
You can find the original code and a slightly more readable version on my gitlab: https://gitlab.com/Rijaja/gaae/-/tree/main/tttaae (but careful, the game is in French)
96 notes
·
View notes