-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Bhoopesh <bhoopesh459@gmail.com> Co-authored-by: shubham-1806 <shub.agarwal2003@gmail.com>
- Loading branch information
1 parent
568dcf0
commit f7367c7
Showing
20 changed files
with
1,100 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* CodeCharacter API | ||
* Specification of the CodeCharacter API | ||
* | ||
* The version of the OpenAPI document: 2023.0.1 | ||
* Contact: delta@nitt.edu | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import * as runtime from '../runtime'; | ||
import type { UserMatchStats } from '../models'; | ||
|
||
/** | ||
* StatsApi - interface | ||
* | ||
* @export | ||
* @interface StatsApiInterface | ||
*/ | ||
export interface StatsApiInterface { | ||
/** | ||
* Gets all statistics for the current user | ||
* @summary Get all General Stats for current user and top user | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof StatsApiInterface | ||
*/ | ||
getStatsRaw( | ||
initOverrides?: RequestInit | runtime.InitOverrideFunction, | ||
): Promise<runtime.ApiResponse<Array<UserMatchStats>>>; | ||
|
||
/** | ||
* Gets all statistics for the current user | ||
* Get all General Stats for current user and top user | ||
*/ | ||
getStats( | ||
initOverrides?: RequestInit | runtime.InitOverrideFunction, | ||
): Promise<Array<UserMatchStats>>; | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
export class StatsApi extends runtime.BaseAPI implements StatsApiInterface { | ||
/** | ||
* Gets all statistics for the current user | ||
* Get all General Stats for current user and top user | ||
*/ | ||
async getStatsRaw( | ||
initOverrides?: RequestInit | runtime.InitOverrideFunction, | ||
): Promise<runtime.ApiResponse<Array<UserMatchStats>>> { | ||
const queryParameters: any = {}; | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
if (this.configuration && this.configuration.accessToken) { | ||
const token = this.configuration.accessToken; | ||
const tokenString = await token('http-bearer', []); | ||
|
||
if (tokenString) { | ||
headerParameters['Authorization'] = `Bearer ${tokenString}`; | ||
} | ||
} | ||
const response = await this.request( | ||
{ | ||
path: `/stats/`, | ||
method: 'GET', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, | ||
initOverrides, | ||
); | ||
|
||
return new runtime.JSONApiResponse(response); | ||
} | ||
|
||
/** | ||
* Gets all statistics for the current user | ||
* Get all General Stats for current user and top user | ||
*/ | ||
async getStats( | ||
initOverrides?: RequestInit | runtime.InitOverrideFunction, | ||
): Promise<Array<UserMatchStats>> { | ||
const response = await this.getStatsRaw(initOverrides); | ||
return await response.value(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule codes
updated
11 files
+21 −13 | cpp/main.cpp | |
+12 −4 | cpp/player_code.cpp | |
+9 −3 | cpp/player_code.h | |
+ − | cpp/run | |
+3 −1 | java/Attacker.java | |
+5 −1 | java/Attributes.java | |
+10 −0 | java/Game.java | |
+11 −5 | java/Main.java | |
+10 −7 | python/main.py | |
+10 −2 | python/player_code.py | |
+2 −0 | python/run.py |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.title { | ||
border: 1px solid #ffffff50 !important; | ||
border-radius: 10px; | ||
background: #ffffff05 !important; | ||
font-size: 1rem; | ||
box-shadow: none !important; | ||
font-family: monospace !important; | ||
align-self: end; | ||
} | ||
|
||
.footer { | ||
background-color: #10101080 !important; | ||
backdrop-filter: blur(30px); | ||
color: white; | ||
font-size: 3rem; | ||
text-align: center; | ||
border: 1px solid #ffffff50 !important; | ||
font-family: monospace !important; | ||
} | ||
|
||
.button:hover { | ||
background-color: transparent !important; | ||
color: #ffffffa0; | ||
} | ||
|
||
.button { | ||
color: white; | ||
text-align: center; | ||
font-size: 1rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { ButtonGroup, Dropdown } from 'react-bootstrap'; | ||
import styles from './GraphSelector.module.css'; | ||
import DropdownMenu from 'react-bootstrap/esm/DropdownMenu'; | ||
const GraphSelecter = ({ graph, selected, setSelected }: GraphFooterProps) => { | ||
return ( | ||
<div> | ||
<Dropdown as={ButtonGroup} drop="down-centered"> | ||
<Dropdown.Toggle className={styles.title}> | ||
{graph[selected]} | ||
</Dropdown.Toggle> | ||
<DropdownMenu className={styles.footer}> | ||
{[...graph].map((g, i) => { | ||
return ( | ||
<Dropdown.Item | ||
key={g} | ||
value={i} | ||
className={styles.button} | ||
onClick={() => { | ||
setSelected(i); | ||
}} | ||
> | ||
{g} | ||
</Dropdown.Item> | ||
); | ||
})} | ||
</DropdownMenu> | ||
</Dropdown> | ||
</div> | ||
); | ||
}; | ||
export default GraphSelecter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type GraphFooterProps = { | ||
graph: string[]; | ||
selected: number; | ||
setSelected: React.Dispatch<React.SetStateAction<number>>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.barChartToolTip { | ||
background-color: #1a1a1aca; | ||
backdrop-filter: blur(4rem); | ||
color: white; | ||
font-family: monospace; | ||
font-size: 1rem; | ||
font-weight: 900; | ||
padding: 10px 10px 0px; | ||
border-radius: 5px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} |
Oops, something went wrong.