Posted: 18th Jan 2022 9:16
@Virtual Nomad thanks . No problem ...I can barely move my right arm and I can't write with one hand.. that's why I say if someone wants to set a new challenge.
Posted: 18th Jan 2022 14:58
feel better soon, chaf. i don't see working on a challenge for 2-3 weeks myself.

if anyone wants to announce a challenge, please do. if i don't see one when i have more time, i'll post one.
Posted: 22nd Jan 2022 13:45
ok, so i'm looking forward to the winter games and thought i'd share it.

Challenge: Winter Games

Deadline: 23:59 UTC on Sunday JAN 30TH (i'll already be in Judge mode, so... )

Details: Create a game consisting of winter Olympic? events, real or fictional!

Rules:
  • No external media

the long-week challenge should allow plenty of time to flesh out the "Olympic experience" some which is something i'll consider when judging
Posted: 22nd Jan 2022 13:51
Ah someone beat me to it! We can save this for a future challenge. Winter games it is!



I have an idea for a short challenge, but a good puzzle that could show up in an interview for a coding job.

Given a string, return true if any containing brackets match up. That means an opening bracket must be followed somewhere by a closing bracket.
Good examples:
(apple)
ap(p)le
apple()

Wrong examples:
apple)
apple)(

For those with a bit of experience, this will likely be a very simple challenge. So to test how efficient of a solution you can create, you must check for the following bracket types:
()
{}
[]
<>

I've left out quotations on purpose since in AppGameKit you can't just simple use \" to escape them in strings.

Valid test input:
<How ((big) is [the] dog)?>
Posted: 22nd Jan 2022 14:18
ha! some strange celestial something must have passed and inspired us at nearly the same time let's do this:

the first idea to get 2 commitments voiced here is the challenge. deal?
Posted: 22nd Jan 2022 14:34
lol works for me
Posted: 22nd Jan 2022 19:05
Hi, nice to continue this challenge.

enjoy
+ Code Snippet
// Project: brackets 
// Created: 2022-01-22

// show all errors
SetErrorMode(2)

// set window properties
SetWindowTitle( "brackets" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window

// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts

Local E As String
Do
    Print(_BRACKETS_CLOSED_("xor ebx, [ebp + 16)"))
    Print(_BRACKETS_CLOSED_(Chr(34) + "My name is govanni george, but everybody calls me ar?ok"))
    Print(_BRACKETS_CLOSED_("{457FEE0"))
    Print(_BRACKETS_CLOSED_("&lt;html"))
    Print(_BRACKETS_CLOSED_(Chr(34) + "&lt;html&gt;{([])}"))
    Print("")
    Print(_BRACKETS_CLOSED_("xor ebx, [ebp + 16]"))
    Print(_BRACKETS_CLOSED_(Chr(34) + "My name is govanni george, but everybody calls me ar?ok" + Chr(34)))
    Print(_BRACKETS_CLOSED_("{457FEE0}"))
    Print(_BRACKETS_CLOSED_("&lt;html&gt;&lt;/html&gt;"))
    Print(_BRACKETS_CLOSED_(Chr(34) + "&lt;html&gt;{([])}" + Chr(34)))
    
    Sync()
Loop



Function _BRACKETS_CLOSED_(_S_ As String)
	Local CheckCount As Integer, BracketList As Integer[16, 2]
	Local Char As Integer, StringLen As Integer, Index As Integer
	Local Control As Integer, BracketScore As Integer[16]
	//This could be filled out of here and made to be a global var
	CheckCount = 0
	BracketList[CheckCount, 0] = Asc("(") :BracketList[CheckCount, 1] = Asc(")") :CheckCount = CheckCount + 1
	BracketList[CheckCount, 0] = Asc("[") :BracketList[CheckCount, 1] = Asc("]") :CheckCount = CheckCount + 1
	BracketList[CheckCount, 0] = Asc("{") :BracketList[CheckCount, 1] = Asc("}") :CheckCount = CheckCount + 1
	BracketList[CheckCount, 0] = Asc("&lt;") :BracketList[CheckCount, 1] = Asc("&gt;") :CheckCount = CheckCount + 1
	
	//make sure chr(34) is at the end, because it has a special case
	//where open and close chars are the same
	BracketList[CheckCount, 0] = 34 :BracketList[CheckCount, 1] = 34 :CheckCount = CheckCount + 1
	
	
	For Index = 0 To 15
		BracketScore[Index] = 0
	Next
	
	StringLen = Len(_S_)
	For Index = 1 To StringLen
		Char = Asc(Mid(_S_, Index, 1))
		
		For Control = 0 To CheckCount - 2
			If Char = BracketList[Control, 0]
				BracketScore[Control] = BracketScore[Control] + 1
				Exit
			EndIf
			If Char = BracketList[Control, 1]
				BracketScore[Control] = BracketScore[Control] - 1
				Exit
			EndIf
		Next
		If Char = BracketList[CheckCount - 1, 0]
			BracketScore[CheckCount - 1] = (BracketScore[CheckCount - 1] + 1) &amp;&amp; 1
		EndIf
		
	Next
	For Index = 0 To 15
		If BracketScore[Index] Then ExitFunction 0
	Next

EndFunction 1


Posted: 23rd Jan 2022 3:32
argghhh. this isn't working right (yet):
+ Code Snippet
SetErrorMode(2)
SetWindowSize( 1280,720, 1 )
SetVirtualResolution( 1280,720)
SetPrintSize(24)
UseNewDefaultFonts( 1 )

GLOBAL Braces$ = "(){}[]&lt;&gt;"
Type Brace
	Open$, Close$
EndType
GLOBAL Pairs as Brace []
For x = 1 to LEN(Braces$) Step 2
	ThisPair as Brace
		ThisPair.Open$ = MID(Braces$,x,1)	:	ThisPair.Close$ = MID(Braces$,x+1,1)
	Pairs.Insert(ThisPair)
Next x
	
TestStrings as String []
TestStrings.Insert("&lt;{How} ((big) is [[the]] dog)?&gt;")
TestStrings.Insert("&lt;{How (((big)) is [the dog?")
TestStrings.Insert("&gt;&lt;}{How ((big)) is ][[the dog]?)(")
TestStrings.Insert("&gt;&lt;}{How ((big)) is ][[the dog]?)(&gt;  OUCH!") 

Do
	if GetRawKeyPressed(27) then End
	For x = 0 to TestStrings.Length
		CheckBraces(TestStrings[x])
	Next x
	Sync()
Loop

Function CheckBraces(ThisString$)
	Print(ThisString$)
	If Pairs.Length &gt; -1 and LEN(ThisString$) &gt; 0
		For x = 0 to Pairs.Length
			First = 1				:	Last = LEN(ThisString$)
			Open$ = Pairs[x].Open$	:	Close$ = Pairs[x].Close$
			
			If FindString(ThisString$,Open$) &gt; 0
				Repeat
					Valid = 1
					First = FindString(ThisString$,Open$,1,First)
					Last = FindStringReverse(ThisString$, Close$,1,Last)
					If First &gt; 0
						If Last = 0
							Valid = 0	:	Exit //Dangling Open
						Else
							If Last &gt; First
								INC First	:	DEC Last
							Else
								Valid = -1	:	Exit //Dangling Close
							Endif
						Endif
					EndIf
				Until First = 0
				PrintC(" " + Open$  + STR(Valid) + Close$)
			Endif
		Next x
	EndIf
	Print("")
EndFunction
Posted: 23rd Jan 2022 23:06
Unfortunately i have absolutely no time right now but as soon as i saw the olympics topic i had an idea;
"Slalom"
Design:
You draw a line with your finger
When you start drawing a line a ball drops from the top of the screen onto that line as if it were a surface (A physics surface)
The ball MUST keep moving or you lose
As the ball moves along the line the camera follows it (Placing it in the centre of the screen)
If the ball is not in contact with the line then the camera will follow it horizontally but not vertically (So if the ball falls below the bottom of the screen you lose)
You get points for "Air". The idea is you make a slope to get the ball speed up then turn the slope up like a ramp. The ball shoots off the ramp and while it is in the air you get points.

Implementation:
Ball is a dynamic object with a circle shape
The line is a series of sprites with a physics shape of a line from touch point to touch point (Make the distance required a minimum so you don't generate a line unless the touch points are a certain distance apart). When the ball is touching a line you destroy any sprites that precede it.
Everything else should be managed by the 2D physics system
Posted: 10th Feb 2022 12:09
Great combined thinking, winter games works well, original concept blink quite doable, I have some concepts in mind too as I dearly love these challenges but only just got internet at the new living address, bills are flooding in and lots still to
unpack. I may be able to whip something up been going through like 20 years worth of storage amazingly learning on the way who I thought I was giving credit to has not always been the original, according to my learned cloud storage solutions
and research its going to take some time to sort through the mess I have of files, including giving the original artists for media I have or complete recreations of my own.

Goodluck with anybody who does these challenges that's how software like AppGameKit becomes known in the community.
Posted: 28th Jun 2022 22:31
Anyone want to partake in the current AGK Space Jam on itch.io but not up for a semi-serious project?

or, just up for a Challenge, regardless?

Consider making a Space-themed MINI game or toy that i could include in my entry as an in-game mini-game!

make it 2D, "mini" but fun, and HTML-friendly** as i hope to export my project as such (WIN is "for sure").

i imagine wrapping each within a function so, keep that in mind.

contrary to this thread's Rules, minimal media is required if you want it included in the Jam. create your own or find some free stuff on Craftpix.net (which has a lot of FREE space stuff, too), & lifetime membership at CartoonsSmart.com so that broadens proper media rights beyond "open" (see attached)

Deadline: July 9th, 0100 UTC which should give me time to judge, implement and test before the Jam deadline 2 weeks later. that Date/Time may slide (back, not forward) if i think i'll have time to get my own prepared early/well enough.

and, inclusion into my project is NOT required. just let me know. and, FULL CREDIT will be included, as will you be added as an Author if you have an itch.io profile

with that, i can't guarantee everyone will get in the Jam that wants to be but you'll definitely be in THIS Challenge and i'll add appropriate entries that don't make it to the Jam in post-Jam updates to mine.

further, winner(s) here MAY be eligible to receive any prizes that my entry may win.

odds are that i already have what may end up as prizes, there, so... but i'm sure something will become a prize HERE.

finally, so that we don't end up with 1/2 a dozen space invaders clones, give us a hint as to what you're working on?

PS, Phaelax, i'm calling you out! this is YOUR thread and you need to partake
Posted: 29th Jun 2022 15:25
PS, Phaelax, i'm calling you out! this is YOUR thread and you need to partake


I'd love to participate more, I'm just always so busy. I code for a living and this week I'm trying to renew my sec+ as well before I leave for vacation in july.

The tower defense game I started was space-related, maybe I could work on that. As for mini games, I could whip up space invaders or asteroids (i've done both before)

Maybe a starfox style game, I call it Space Goat.