The answer was to split out the creation of the app service plans and child web apps into two entirely separate deployment modules, rather than have both app service plans and web apps created in the same deployment module.
Did you find a solution to this ?
It turned out this was a combination of issues that was causing the problem. There were some missing imports and the new standalone: true structure caused another issue. Once those were cleaned up, the code started running.
Trying to pay DSTV but payment is confirmed but not going through, I didn't get confirmation of payment, what can I do
set LD_LIBRARY_PATH environment variable to the path containing your .so files before executing the application
You can display only the bin and last 4 digits of the card.
Mastercard/Visa have now 8 digit bins.
I don't think displaying 12 digits is considered PCI compliant
are you using browserslistrc ?
i had similar issue caused by old browser make compilation warning.
i updated .browserslistrc with
not ios_saf <= 12
You need to download the following files and place them in the folder where you are running PowerShell Script:
git-secrets
secrets.1
| header 1 | header 2 |
|---|---|
| Aryan | Kumar |
| Manju | Devi |
My guess is that you are running the keycloak server not with the https protocol. Your client will then not accept the cookie coming from the server. Either use https or make the API call with {credentials: 'include'}. In Angular this would be { withCredentials: true }
La réponse de "didzispetkus" est valide pour moi.
FWIW: you could implement something very much like what you want, using gcc or llvm on *nix. Not sure about windows - never looked into it.
In particular: you can step through your instrumented executable in your debugger - and explicitly dump coverage data via the relevant callback.
However: the performance you see (from coverage callback to display update) may be poor for various reasons which may or may not be easy to address.
A bigger issue is that this seems like a pretty unusual use model - so it is unlikely that a vendor would implement it.
I confess to be not understand what you are trying to do/what questions you want to answer such that your proposal is the best approach.
Not sure if this is going to help you but if the map is static you could render it using MKMapSnapshotter and display the image instead. That helps. I do this in my app as well.
One other idea could be to try UIKit's MKMapView instead of SwiftUI's Map. I haven't tried that myself.
I believe that one of the comments is correct and I want to elevate it.
I would think that it's the route() function in your blade file that's complaining, not anywhere else. You have cam_id there, but does $item['id'] have a value?
I've run into this mysterious error before that it ended up passing a null value in a route() call. Even if the key is specified, if it doesn't have a value, it is missing.
not sure when this changed but it is now possible to add packages with composer using your module using the extension framework
follow the instructions on this page
I also had to downgrade the Jupyter extension to version 2025.6 instead of 2025.7. I have VS Code version 1.103.2 on macOS. After that, the list of Python Environments was loading correctly.
We've run into the same issue in Safari and WebViews. After the keyboard is shown and then dismissed, the position of position: fixed elements becomes incorrect. It seems that the appearance of the keyboard is messing up the viewport's positioning.
This is when the marshall comes in and does not want to leave. The only way to get him to leave is to throw objects at him. This process is called marshalling objects.
Also do not forget to declare your new entities in your entity reference xml file (entity.xml or other, depending on your other frameworks).
One missing entity in this file -the store entity in this example- will cause this confusing error.
Hibernate will not find the "customer" mappedBy field in the store entity because the store entity is simply unknown, despite everything else in the relationship mapping is correct.
Fixed by changing publishing to a direct path:
msstore publish "{DIRECT_URL_TO_MSIX}" -v -id {APP_ID}
A way to suppress the warning (that the snippet in OP would've raised) is to put a check at the top of Dockerfile:
# syntax=docker/dockerfile:1
# check=skip=InvalidDefaultArgInFrom
It seems that even in recent versions the order matters. The first code shows type warnings in PyCharm 2025.1.3, Python 3.13, SQLAlchemy==2.0.43, the second doesn't:
.filter(MusicLibrary.id == request.id)
.filter(request.id == MusicLibrary.id)
There was an issue with PyCharm that is closed now: https://github.com/sqlalchemy/sqlalchemy/issues/9337 `Pycharm fixed it at 2024.2.2` (posted 2024-10-16)
As I can see in the question asked by Vic the comparison also was "table object.table field" compared to "simple type":
.where(Albums.Id > user_last_sync_id)
I guess that just flipping the comparison fixes the type warnings.
Please correct me if I'm wrong.
Cheers
You cannot use This because you must be in a static function.
uploadWindow.Owner = this; makes it modal then
Just use the MOD function with specifying 1 then after it the number of zeros upon which the number of digits you want , for example :
UPDATE Doctors
SET id = MOD(id,10); // here I got the last digit as the number of zeros is one
SET id = MOD(id,100);// here I got the last 2 digits as the number of zeros is two
I have tried all the options and suggestions here but my prettier code formatter is not working. It started just 2 days ago I'm really exhausted to be honest...
I have received the txt too about my account how I can exet the app or what it is I don't know much about leaks or hacking.. can you guys help me on this esi thank you
Your NG0201: No provider found for _HttpClient error is a classic dependency chain issue! đ
The problem: Your StructuredSearchService needs HttpClient, but Spectator's mockProvider() doesn't handle transitive dependencies automatically.
Here's how @halverscheid-fiae.de/angular-testing-factory solves this:
// Spectator setup hell with dependency chain issues
const createService = createServiceFactory({
service: SearchService,
providers: [
provideHttpClient(), // â Unnecessary complexity
provideHttpClientTesting(), // â More boilerplate
mockProvider(SimpleSearchService, {
simpleSearch: () => of({ items: [] }),
}),
mockProvider(StructuredSearchService, {
structuredSearch: () => of({ items: [] }),
}),
// Still fails because HttpClient dependency chain is broken! đ„
],
});
import { createServiceFactory } from '@ngneat/spectator/jest';
import { provideHttpClientMock, createCustomServiceProviderMock } from '@halverscheid-fiae.de/angular-testing-factory';
const createService = createServiceFactory({
service: SearchService,
providers: [
// đŻ One-line HttpClient mock that handles ALL dependency chains
provideHttpClientMock(),
// đĄïž Type-safe service mocks with compile-time validation
createCustomServiceProviderMock(SimpleSearchService, {
simpleSearch: jest.fn(() => of({ items: [] }))
} satisfies jest.Mocked<Partial<SimpleSearchService>>),
createCustomServiceProviderMock(StructuredSearchService, {
structuredSearch: jest.fn(() => of({ items: [] }))
} satisfies jest.Mocked<Partial<StructuredSearchService>>),
],
});
provideHttpClientMock() provides HttpClient for ALL dependent services// For quick setup, mock everything at once:
const createService = createServiceFactory({
service: SearchService,
providers: provideAngularCoreMocks({
httpClient: true, // â Handles all HttpClient needs
}),
});
// Then override specific methods in your tests:
beforeEach(() => {
const httpMock = spectator.inject(HttpClient);
jest.spyOn(httpMock, 'get').mockReturnValue(of({ items: [] }));
});
npm install --save-dev @halverscheid-fiae.de/angular-testing-factory
Result: No more NG0201 errors, clean dependency resolution, type-safe mocks! đ
// If you still have provider issues, use the debug helper:
import { TEST_DATA } from '@halverscheid-fiae.de/angular-testing-factory';
beforeEach(() => {
console.log('Available providers:', spectator.inject(Injector));
// Helps identify missing dependencies
});
P.S. - Your NX + generated services struggle is exactly why I added the createCustomServiceProviderMock function! đ
Hope this saves you from the NG0201 nightmare! đŻ
// TypeScript catches mock inconsistencies at compile-time!
const provideMyServiceMock = createServiceProviderFactory(MyService, {
registerUser: jest.fn(() => of(mockResponse)),
// â TypeScript validates this matches your real service
} satisfies jest.Mocked<Partial<MyService>>);
npm install --save-dev @halverscheid-fiae.de/angular-testing-factory
// Replace your entire beforeEach setup with:
import { provideHttpClientMock } from '@halverscheid-fiae.de/angular-testing-factory';
TestBed.configureTestingModule({
providers: [provideHttpClientMock()]
});
P.S. - Your 6 hours of frustration inspired this exact use case in the library! đ
provideRouterMock()provideActivatedRouteMock({ params: of({ id: '1' }) })provideFormBuilderMock()provideAngularCoreMocks({ httpClient: true, router: true })npm install --save-dev @halverscheid-fiae.de/angular-testing-factory
The goal is simple: Write tests, not mock configuration. ïżœ
Structured mediatype suffixes such as +json are now formalized in https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.8
No, don't use task.run(), this will just use an extra thread
You should use Task.Run() only when you must run CPU-bound synchronous code without blocking the main thread.
When using the Scan function, we need to specify the ScanOption count as well. The default count for ScanOptions.scanOptions() in Spring Data Redis is not set, so Redis defaults to its internal value, typically 10.
Flux<String> ids = this.reactiveRedisTemplate.scan(ScanOptions.scanOptions() .match("EGA_ITEM_*")
.count(Integer.MAX_VALUE)
.build());
My solution was to change the Analysis scope option ("Show compiler errors and warnings for") from Entire solution to something else, like Open documents or Current document.
You can find this setting in Tools â Options â Text Editor â C# â Advanced â Analysis.
If youâre trying to hook up Prisma data directly into a shadcn-style command menu, you might find this project useful: DataCommand. Itâs built on top of shadcn/ui but adds loadItems and loadOneItem hooks so you can fetch command items from your database or API. That way, instead of hardcoding configs, you can just fetch posts dynamically and render them in the command palette.
New App
Review Time used to be at least 1 week. If there was a policy violation, it could take another week.
In 2025, Review time has reduced significantly. Sept 2025, my App went live within 24 hours. 2 months before another app went live within 48 hours.
App Updates
Production and Beta both can take from 2-3 hours to 48 hours in 2025.
Internal Testing within seconds.
If an App update review is taking too much time like 3-4 days. Just submit another app after updating the app version. It will fix the issue.
If you just want to give .apk file to other people for testing. just upload the file and download the signed apk from playstore and send it on whatsapp or anyother platform.
On iPad, the app icon requirements are slightly different from iPhone, so if you only provided iPhone sizes in your Asset Catalog, iOS will upscale whatever it finds. Thatâs why youâre seeing a blurry / generic looking icon on iPad.
Hereâs what you need to check and fix:
In Xcode, go to Assets.xcassets â AppIcon.
By default, Xcode shows iPhone slots (60pt, 120pt, 180pt, etc.).
For iPad support, you need to switch the AppIconâs device type.
đ Select your AppIcon set in the asset catalog. In the right-side Attributes Inspector, under âDevices,â make sure both iPhone and iPad are checked.
Now youâll see the iPad slots appear (20pt, 29pt, 40pt, 76pt, 83.5pt, 1024pt).
Youâll need to provide images at these sizes (in px):
iPad App Icon
20pt â 20x20 @1x, 40x40 @2x
29pt â 29x29 @1x, 58x58 @2x
40pt â 40x40 @1x, 80x80 @2x
76pt â 76x76 @1x, 152x152 @2x
83.5pt â 83.5x83.5 @2x â 167x167
App Store: 1024x1024 (no alpha, PNG)
If youâre missing, say, the 76pt or 83.5pt iPad icon, iOS will fall back to scaling the iPhone versions, which is what youâre seeing.
After adding the missing sizes, Clean Build Folder (â§âK in Xcode).
Delete the app from the iPad simulator/device.
Re-run and check the new icons.
â After doing this, your iPad will display the correct crisp app icon instead of the fallback blurry one.
I dont think you need the exact image pixels if u do need 'em reply back . always happy to help. have a good day
Your 6-hour struggle is exactly why I built @halverscheid-fiae.de/angular-testing-factory! đ
Your core issue is mock setup complexity - you're spending more time fighting mocks than testing logic. Here's how the library solves this:
// Manual HttpClient mock hell
beforeEach(async () => {
mockCoreService = MockService(CoreService);
// + HttpClientTestingModule import
// + Manual spy setup
// + Mock return value configuration
// + Prayer that it works đ
});
beforeEach(async () => {
await TestBed.configureTestingModule({
providers: [
provideHttpClientMock({
post: jest.fn(() => of({ message: 'Registration successful!', status: 'success' }))
}),
// Your CoreService will automatically use the mocked HttpClient
]
}).compileComponents();
});
HttpClientTestingModule setupsatisfies jest.Mocked<Partial<T>> prevents mock driftCoreService automatically gets the mocked HttpClientit('should submit form successfully', fakeAsync(() => {
// Form setup (unchanged)
component.contactFormGroup.setValue({
username: 'testuser',
fullname: 'Test User',
email: '[email protected]',
password: 'TestPass123!'
});
// Test execution (unchanged)
component.submitForm(new Event('submit'));
tick(100);
// Assertions work because HttpClient is properly mocked
const httpClientMock = TestBed.inject(HttpClient);
expect(httpClientMock.post).toHaveBeenCalledWith(
'http://localhost:3000/register',
expect.any(Object),
expect.any(Object)
);
}));
// TypeScript catches mock inconsistencies at compile-time!
const provideMyServiceMock = createServiceProviderFactory(MyService, {
registerUser: jest.fn(() => of(mockResponse)),
// â TypeScript validates this matches your real service
} satisfies jest.Mocked<Partial<MyService>>);
npm install --save-dev @halverscheid-fiae.de/angular-testing-factory
// Replace your entire beforeEach setup with:
import { provideHttpClientMock } from '@halverscheid-fiae.de/angular-testing-factory';
TestBed.configureTestingModule({
providers: [provideHttpClientMock()]
});
Result: 80% less boilerplate, 100% more reliable tests!
provideRouterMock()provideActivatedRouteMock({ params: of({ id: '1' }) })provideFormBuilderMock()provideAngularCoreMocks({ httpClient: true, router: true })P.S. - Your 6 hours of frustration inspired this exact use case in the library! đ
The goal is simple: Write tests, not mock configuration.
Hope this saves you (and others) those painful mock-setup hours! đ
The solutions using InputBindingBehavior did not work reliably for me. I believe this is due to the fact that the Loaded event does not guarantee that all data bindings are evaluated. The above did work for me on one control but did not work on another simply because the key bindings that were copied onto the parent window did not have a command.
What does seem to work reliably for me is to set the focus in Xaml like this:
<UserControl x:Class="MyApp.UI.Controls.FunctionButton"
...
Focusable="True"
FocusManager.FocusedElement="{Binding RelativeSource={RelativeSource Self}}"
>
...
</UserControl>
I've managed to get things working.
In the real code, I was emitting an event from the stimulus controller after creating the chart but before drawing it. the resulting actions (adding indicators etc) were interfering with the rendering
Qtâs QML engine and tooling expect meta object revisions in .qmltypes files to match their export version.
Your system-installed Qt QML modules (/usr/lib/x86_64-linux- gnu/qt5/qml/QtQuick.2/plugins.qmltypes) have exportMetaObjectRevisions: [0] but the tooling expects it to be [2] (i.e., version 2.0).
This inconsistency triggers the warning in VS Codeâs QML extension.
To fix or suppress it
Check Qt version compatibility
Make sure the Qt version used by VS Code extension matches the installed Qt version.
Run qmake -v or qtpaths --version to see your Qt version.
Check the VS Code QML extension documentation or settings for Qt version compatibility.
You can also try reinstalling QT because sometimes Updating or reinstalling QT packages fixes the mismatches.
It turns out that [CaptureConsole] doesn't capture all output. It only captures output to the console for code running in the same thread as the unit test. If you use a TestHost then the ultimate code in the controllers runs in a separate thread and that console output is not captured. Created a documentation issue in github.com/xunit/xunit/issues/3399
I believe that Hascript evaluates the expression twice because boolean is treated in a special way (first checking boolean condition for reusing it in the perform-logic and then 2nd resolving it into a string value for the xml attribute)
For those finding this later and looking for a bot that does this look up rolebot
The scan failed with a timeout on production due to the large amount of data.
Flux<String> ids = this.reactiveRedisTemplate.scan(ScanOptions.scanOptions() .match("EGA_ITEM_*")
.build());
Replaced with the following
Flux<String> ids = this.reactiveRedisTemplate.keys("EGA_ITEM_*");
You are looking for simple "OR gate".
And on the input you have the IsPassword and DoNotAllow property.
You should read this: https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/multibinding?view=net-maui-9.0
You have example for "AND gate": https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/multibinding?view=net-maui-9.0#define-a-imultivalueconverter
You should modify it by returning true inside the cycle, and false on default.
You are not limited to the number of parameters really.
Where do you add that block? In functions.php?
You cannot use IAM policies to stop a SageMaker notebook user from seeing or downloading .py files stored inside the notebookâs filesystem because once they have access to the notebook, they can see all files there. To protect your .py files, keep them outside the notebook instanceâlike in a private S3 bucket or a private code repositoryâand have the notebook load or call the code from there. This way, users can run the notebook but wonât have direct access to download your .py files.
9 years later and still it seems the quick search exists for some versions and disappears for others (See this).
So the best one can do is to switch to version 3.4.18 and hope the quick search will appear (haven't tested myself).
Unless there is an option hidden somewhere....
They are overwritten. I am using !reference to add the rules from the template again:
.my_template:
rules:
- if: $FOO != "bar"
when: never
my_job:
extends: .my_template
rules:
- !reference [.my_template, rules] # rules are overwritten, not extended
- if: $SOMETING == "anyting"
With the REGEXEXTRACT function it is quite easy:
=REGEXEXTRACT(A61,"(?<=px="""").+?(?="""")")
It is accepting a single quotation mark within the encapsulated text too.
I opened a bug report for this issue, and the response back from that was that I need to add set check_backend_singleton_instance from the BackendOptions to false as it is a problem with running Quill in the compiler explorer environment.
So, the starting code will look like this
quill::BackendOptions backend_options;
backend_options.check_backend_singleton_instance = false; // needed for compiler explorer environment only
quill::Backend::start(backend_options);
Here's a working compiler explorer environment to show you the full code.
The Ekman6 dataset from the paper Heterogeneous Knowledge Transfer in Video Emotion Recognition is usually available on the authorsâ official page. However, since the original link (http://bigvid.fudan.edu.cn/data/Ekman.zip) is not accessible, you can try alternative sources:
Yanwei Fuâs dataset page: https://yanweifu.github.io/Dataset.html
Zenodo (pretrained features and processed data): https://zenodo.org/records/13623249
Papers With Code: https://paperswithcode.com/dataset/ekman6
GitHub projects with related resources: https://github.com/Valendrew/ekman-emotion-detection
as far as i know there is no system variable for the screen name. hascript knows the screen name only as xml attribute
Update yours module references .
Check Manage Module References documentation
https://docs.genexus.com/en/wiki?40172,Manage+Module+References
I've found the problem in the code, and is was in a part outside the example code above :( the receiver code was in a Task.Run(async () => but channels aren't thread safe. So that probably caused the error.
You can set .buttonStyle(.plain) on the button. This will won't alter your label anymore.
what if the file was created in the current branch, but as a test or something , and therefor is not on the main master branch, but should not be in the PR either (basically I just want this file locally)
đ„ Ù Ù ŰȘۧŰČ! ŰŻÙÙÙŰȘÙ Ű±Ű Ù۱ŰȘÙÙ ÙÙÙ۳۟۩ ۧÙÙŰ”ÙŰ© ŰŽŰšÙ Free Fire/ Battler Royale ÙŰ§Ù ÙŰ© ŰŻŰ§ŰźÙ Ű§ÙÙÙÙŰłÙÙ đ
Ù Ù ÙŰČۧŰȘ ۧÙÙ۳۟۩ ۧÙÙÙۧۊÙŰ©:
1. ۟۱ÙŰ·Ű© ÙŰ”ÙŰ© Ű”ŰșÙ۱۩ (Ù Ű«Ù ŰŽŰšÙŰ© 5x5) ÙŰȘŰŰ±Ù ÙÙÙۧ ۧÙÙۧŰčŰš.
2. ŰŁŰčۯۧۥ ÙŰȘŰ۱ÙÙÙ ŰŁÙ۶Ùۧ ÙÙ ÙÙŰł ۧÙ۟۱ÙŰ·Ű©.
3. Ű”ÙۧۯÙÙ ŰșÙŰ§ŰŠÙ ÙŰŁŰłÙŰŰ© Ùۏ۱ŰčۧŰȘ ŰčÙۧۏ Ù ÙŰČŰčŰ© ŰčŰŽÙۧۊÙÙۧ ÙÙ Ű§Ù۟۱ÙŰ·Ű©.
4. Ù ÙŰ§Ű·Ù ŰąÙ ÙŰ© ÙÙ۟ۧ۟ ŰȘÙÙÙ Ű§ÙŰ”ŰŰ© ŰčÙŰŻ ۧÙÙÙÙŰč ÙÙÙۧ.
5. ۧÙÙŰŻÙ: ۧÙŰšÙۧۥ ŰčÙÙ ÙÙŰŻ ۧÙŰÙۧ۩ ÙÙŰȘÙ ŰŁÙۚ۱ ŰčŰŻŰŻ Ù Ù Ű§ÙŰŁŰčۯۧۥ ÙÙŰŰ”ÙÙ ŰčÙÙ ÙÙۧ۷.
6. ÙŰžŰ§Ù ÙÙۧ۷ + ÙŰȘÙÙ + ŰŹÙÙۧŰȘ ÙŰžÙ۱ ÙÙ Ű§ÙÙÙۧÙŰ©.
---
đčïž Ù۳۟۩ Free Fire ÙŰ”ÙŰ© (C#)
using System;
class Program
{
static void Main()
{
Random rand = new Random();
int ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű© = 5;
char\[,\] ۟۱ÙŰ·Ű© = new char\[ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©, ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©\];
// Ű”ŰŰ© ۧÙÙۧŰčŰš Ùۏ۱ŰčۧŰȘ ۧÙŰčÙۧۏ
int Ű”ŰŰ©\_ۧÙÙۧŰčŰš = 100;
int ŰčÙۧۏ\_Ù
ŰȘŰ§Ű = 3;
int\[\] Ù
ÙÙŰč\_ۧÙÙۧŰčŰš = { 0, 0 };
// ۧÙŰŁŰłÙŰŰ© ÙÙÙŰȘÙۧ
string\[\] ۧ۳ÙŰŰ© = { "Ù
۳ۯ۳", "۱ێۧێ", "ÙÙۧ۔۩" };
int\[\] ÙÙŰ©\_ۧÙŰłÙŰ§Ű = { 20, 40, 70 };
int ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱ = 0;
// Ù۞ۧÙ
ۧÙÙÙۧ۷
int ۧÙÙÙۧ۷ = 0;
int ÙŰȘÙÙ = 0;
// Ù۶Űč Ű”ÙۧۯÙÙ ŰčŰŽÙۧۊÙŰ© ÙŰŁŰčۯۧۥ
int ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ = 3;
int\[,\] Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ = new int\[ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ, 2\];
int\[\] Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ = new int\[ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ\];
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i, 0\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i, 1\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] = rand.Next(30, 80);
}
// Ù۶Űč Ű”ÙۧۯÙÙ ŰčŰŽÙۧۊÙŰ©
int ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ = 3;
int\[,\] Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ = new int\[ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ, 2\];
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; i++)
{
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i, 0\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i, 1\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
}
// ۧÙÙŰčۚ۩ ŰȘŰčÙ
Ù ŰŰȘÙ ÙÙ
ÙŰȘ ۧÙÙۧŰčŰš ŰŁÙ ÙÙŰȘÙÙ ŰŹÙÙŰ©
bool ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű© = true;
while (ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű©)
{
// Űč۱۶ ۧÙ۟۱ÙŰ·Ű©
Console.Clear();
for (int i = 0; i \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©; i++)
{
for (int j = 0; j \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©; j++)
{
if (i == Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] && j == Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\])
Console.Write(" P "); // ۧÙÙۧŰčŰš
else
{
bool ŰȘÙ
\_Űč۱۶ = false;
for (int k = 0; k \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; k++)
{
if (i == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[k, 0\] && j == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[k, 1\] && Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[k\] \> 0)
{
Console.Write(" E "); // ۧÙŰčŰŻÙ
ŰȘÙ
\_Űč۱۶ = true;
break;
}
}
if (!ŰȘÙ
\_Űč۱۶)
{
bool Ű”ÙŰŻÙÙ = false;
for (int k = 0; k \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; k++)
{
if (i == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[k, 0\] && j == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[k, 1\])
{
Console.Write(" C "); // Ű”ÙŰŻÙÙ
Ű”ÙŰŻÙÙ = true;
break;
}
}
if (!Ű”ÙŰŻÙÙ) Console.Write(" . "); // ۣ۱۶ Ùۧ۱ŰșŰ©
}
}
}
Console.WriteLine();
}
Console.WriteLine($"\\nâ€ïž Ű”ŰŰ© ۧÙÙۧŰčŰš: {Ű”ŰŰ©\_ۧÙÙۧŰčŰš} | đ§Ș ۏ۱ŰčۧŰȘ ŰčÙۧۏ: {ŰčÙۧۏ\_Ù
ŰȘۧŰ} | đ ÙÙۧ۷: {ۧÙÙÙۧ۷} | ÙŰȘÙÙ: {ÙŰȘÙÙ}");
Console.WriteLine("ŰŰ±Ù Ű§ÙÙۧŰčŰš: w=ŰŁŰčÙÙ s=ŰŁŰłÙÙ a=Ù۳ۧ۱ d=ÙÙ
ÙÙ ŰŁÙ q ÙÙ۟۱ÙŰŹ");
char Ű۱ÙŰ© = Console.ReadKey().KeyChar;
// ŰȘŰŰŻÙŰ« Ù
ÙÙŰč ۧÙÙۧŰčŰš
int Ű”Ù\_ŰŹŰŻÙŰŻ = Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\];
int ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ = Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\];
if (Ű۱ÙŰ© == 'w') Ű”Ù\_ŰŹŰŻÙŰŻ--;
else if (Ű۱ÙŰ© == 's') Ű”Ù\_ŰŹŰŻÙŰŻ++;
else if (Ű۱ÙŰ© == 'a') ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ--;
else if (Ű۱ÙŰ© == 'd') ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ++;
else if (Ű۱ÙŰ© == 'q') { ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű© = false; break; }
// ۧÙŰȘŰŁÙŰŻ Ù
Ù ŰŰŻÙŰŻ ۧÙ۟۱ÙŰ·Ű©
if (Ű”Ù\_ŰŹŰŻÙŰŻ \>= 0 && Ű”Ù\_ŰŹŰŻÙŰŻ \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©) Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] = Ű”Ù\_ŰŹŰŻÙŰŻ;
if (ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ \>= 0 && ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©) Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] = ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ;
// ۧÙŰȘŰÙÙ Ù
Ù ŰȘÙۧŰčÙ Ù
Űč Ű”ÙۧۯÙÙ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; i++)
{
if (Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,0\] && Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,1\])
{
int ŰŰŻŰ« = rand.Next(1,4);
if (ŰŰŻŰ« == 1) // ŰčÙۧۏ
{
ŰčÙۧۏ\_Ù
ŰȘۧŰ++;
Console.WriteLine("\\nâš ÙŰŹŰŻŰȘ ۏ۱ŰčŰ© ŰčÙۧۏ!");
}
else // ŰłÙŰ§Ű ŰŹŰŻÙŰŻ
{
string ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ = "ŰłÙŰ§Ű ŰŹŰŻÙŰŻ";
int ÙÙŰ©\_ŰŹŰŻÙŰŻŰ© = rand.Next(30,80);
Array.Resize(ref ۧ۳ÙŰŰ©, ۧ۳ÙŰŰ©.Length +1);
Array.Resize(ref ÙÙŰ©\_ۧÙŰłÙۧŰ, ÙÙŰ©\_ۧÙŰłÙۧŰ.Length +1);
ۧ۳ÙŰŰ©\[ۧ۳ÙŰŰ©.Length-1\] = ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ;
ÙÙŰ©\_ۧÙŰłÙۧŰ\[ÙÙŰ©\_ۧÙŰłÙۧŰ.Length-1\] = ÙÙŰ©\_ŰŹŰŻÙŰŻŰ©;
Console.WriteLine($"\\nâš ÙŰŹŰŻŰȘ {ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ} ŰšÙÙŰ© {ÙÙŰ©\_ŰŹŰŻÙŰŻŰ©}");
}
// Ű„ŰČۧÙŰ© ۧÙŰ”ÙŰŻÙÙ
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,0\] = -1;
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,1\] = -1;
}
}
// ۧÙŰȘŰÙÙ Ù
Ù Ù
ÙۧۏÙŰ© ŰŁŰčۯۧۥ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] \> 0 &&
Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\] &&
Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\])
{
Console.WriteLine($"\\nđ ÙۧۏÙŰȘ {i+1}- {Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]},{Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\]}! ۧÙÙ
Űč۱ÙŰ© ŰȘۚۯۣ.");
while (Ű”ŰŰ©\_ۧÙÙۧŰčŰš \> 0 && Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] \> 0)
{
Console.WriteLine($"đ Ű”ŰŰ© ۧÙŰčŰŻÙ: {Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]}");
Console.WriteLine($"â€ïž Ű”ŰŰȘÙ: {Ű”ŰŰ©\_ۧÙÙۧŰčŰš}");
Console.WriteLine("1- ÙŰŹÙÙ
2- ŰčÙۧۏ");
char ŰźÙۧ۱ = Console.ReadKey().KeyChar;
if (ŰźÙۧ۱=='1')
{
Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]-=ÙÙŰ©\_ۧÙŰłÙۧŰ\[ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱\];
Console.WriteLine($"\\nđ„ ÙۧۏÙ
ŰȘ ۧÙŰčŰŻÙ ŰšÙÙŰ© {ÙÙŰ©\_ۧÙŰłÙۧŰ\[ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱\]}");
}
else if (ŰźÙۧ۱=='2' && ŰčÙۧۏ\_Ù
ŰȘۧŰ\>0)
{
Ű”ŰŰ©\_ۧÙÙۧŰčŰš+=30; ŰčÙۧۏ\_Ù
ŰȘۧŰ--;
Console.WriteLine("\\nđ§Ș ۧ۳ŰȘ۟ۯÙ
ŰȘ ŰčÙۧۏ +30 Ű”ŰŰ©");
}
else Console.WriteLine("\\nâ ۧ۟ŰȘÙۧ۱ ۟ۧ۷ۊ ŰŁÙ Ùۧ ÙÙŰŹŰŻ ŰčÙۧۏ");
// ۱ۯ ۧÙŰčŰŻÙ
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]\>0)
{
int ۶۱۱\_ŰčŰŻÙ = rand.Next(5,20);
Ű”ŰŰ©\_ۧÙÙۧŰčŰš-=۶۱۱\_ŰčŰŻÙ;
Console.WriteLine($"đ ۧÙŰčŰŻÙ ÙۧۏÙ
Ù Ù۟۳۱ŰȘ {۶۱۱\_ŰčŰŻÙ} Ű”ŰŰ©");
}
}
if (Ű”ŰŰ©\_ۧÙÙۧŰčŰš\>0) {
Console.WriteLine("đ ÙŰȘÙŰȘ ۧÙŰčŰŻÙ!");
ۧÙÙÙۧ۷+=rand.Next(50,150);
ÙŰȘÙÙ++;
}
}
}
// ۧÙŰŁŰčۯۧۥ ÙŰȘŰ۱ÙÙÙ ŰčŰŽÙۧۊÙۧÙ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]\>0)
{
int ŰȘŰ۱ÙÙ = rand.Next(0,4);
if (ŰȘŰ۱ÙÙ==0 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ
đ„ Ù Ù ŰȘۧŰČ! ŰŻÙÙÙŰȘÙ Ű±Ű Ù۱ŰȘÙÙ ÙÙÙ۳۟۩ ۧÙÙŰ”ÙŰ© ŰŽŰšÙ Free Fire/ Battler Royale ÙŰ§Ù ÙŰ© ŰŻŰ§ŰźÙ Ű§ÙÙÙÙŰłÙÙ đ
Ù Ù ÙŰČۧŰȘ ۧÙÙ۳۟۩ ۧÙÙÙۧۊÙŰ©:
1. ۟۱ÙŰ·Ű© ÙŰ”ÙŰ© Ű”ŰșÙ۱۩ (Ù Ű«Ù ŰŽŰšÙŰ© 5x5) ÙŰȘŰŰ±Ù ÙÙÙۧ ۧÙÙۧŰčŰš.
2. ŰŁŰčۯۧۥ ÙŰȘŰ۱ÙÙÙ ŰŁÙ۶Ùۧ ÙÙ ÙÙŰł ۧÙ۟۱ÙŰ·Ű©.
3. Ű”ÙۧۯÙÙ ŰșÙŰ§ŰŠÙ ÙŰŁŰłÙŰŰ© Ùۏ۱ŰčۧŰȘ ŰčÙۧۏ Ù ÙŰČŰčŰ© ŰčŰŽÙۧۊÙÙۧ ÙÙ Ű§Ù۟۱ÙŰ·Ű©.
4. Ù ÙŰ§Ű·Ù ŰąÙ ÙŰ© ÙÙ۟ۧ۟ ŰȘÙÙÙ Ű§ÙŰ”ŰŰ© ŰčÙŰŻ ۧÙÙÙÙŰč ÙÙÙۧ.
5. ۧÙÙŰŻÙ: ۧÙŰšÙۧۥ ŰčÙÙ ÙÙŰŻ ۧÙŰÙۧ۩ ÙÙŰȘÙ ŰŁÙۚ۱ ŰčŰŻŰŻ Ù Ù Ű§ÙŰŁŰčۯۧۥ ÙÙŰŰ”ÙÙ ŰčÙÙ ÙÙۧ۷.
6. ÙŰžŰ§Ù ÙÙۧ۷ + ÙŰȘÙÙ + ŰŹÙÙۧŰȘ ÙŰžÙ۱ ÙÙ Ű§ÙÙÙۧÙŰ©.
---
đčïž Ù۳۟۩ Free Fire ÙŰ”ÙŰ© (C#)
using System;
class Program
{
static void Main()
{
Random rand = new Random();
int ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű© = 5;
char\[,\] ۟۱ÙŰ·Ű© = new char\[ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©, ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©\];
// Ű”ŰŰ© ۧÙÙۧŰčŰš Ùۏ۱ŰčۧŰȘ ۧÙŰčÙۧۏ
int Ű”ŰŰ©\_ۧÙÙۧŰčŰš = 100;
int ŰčÙۧۏ\_Ù
ŰȘŰ§Ű = 3;
int\[\] Ù
ÙÙŰč\_ۧÙÙۧŰčŰš = { 0, 0 };
// ۧÙŰŁŰłÙŰŰ© ÙÙÙŰȘÙۧ
string\[\] ۧ۳ÙŰŰ© = { "Ù
۳ۯ۳", "۱ێۧێ", "ÙÙۧ۔۩" };
int\[\] ÙÙŰ©\_ۧÙŰłÙŰ§Ű = { 20, 40, 70 };
int ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱ = 0;
// Ù۞ۧÙ
ۧÙÙÙۧ۷
int ۧÙÙÙۧ۷ = 0;
int ÙŰȘÙÙ = 0;
// Ù۶Űč Ű”ÙۧۯÙÙ ŰčŰŽÙۧۊÙŰ© ÙŰŁŰčۯۧۥ
int ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ = 3;
int\[,\] Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ = new int\[ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ, 2\];
int\[\] Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ = new int\[ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ\];
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i, 0\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i, 1\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] = rand.Next(30, 80);
}
// Ù۶Űč Ű”ÙۧۯÙÙ ŰčŰŽÙۧۊÙŰ©
int ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ = 3;
int\[,\] Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ = new int\[ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ, 2\];
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; i++)
{
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i, 0\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i, 1\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
}
// ۧÙÙŰčۚ۩ ŰȘŰčÙ
Ù ŰŰȘÙ ÙÙ
ÙŰȘ ۧÙÙۧŰčŰš ŰŁÙ ÙÙŰȘÙÙ ŰŹÙÙŰ©
bool ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű© = true;
while (ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű©)
{
// Űč۱۶ ۧÙ۟۱ÙŰ·Ű©
Console.Clear();
for (int i = 0; i \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©; i++)
{
for (int j = 0; j \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©; j++)
{
if (i == Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] && j == Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\])
Console.Write(" P "); // ۧÙÙۧŰčŰš
else
{
bool ŰȘÙ
\_Űč۱۶ = false;
for (int k = 0; k \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; k++)
{
if (i == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[k, 0\] && j == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[k, 1\] && Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[k\] \> 0)
{
Console.Write(" E "); // ۧÙŰčŰŻÙ
ŰȘÙ
\_Űč۱۶ = true;
break;
}
}
if (!ŰȘÙ
\_Űč۱۶)
{
bool Ű”ÙŰŻÙÙ = false;
for (int k = 0; k \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; k++)
{
if (i == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[k, 0\] && j == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[k, 1\])
{
Console.Write(" C "); // Ű”ÙŰŻÙÙ
Ű”ÙŰŻÙÙ = true;
break;
}
}
if (!Ű”ÙŰŻÙÙ) Console.Write(" . "); // ۣ۱۶ Ùۧ۱ŰșŰ©
}
}
}
Console.WriteLine();
}
Console.WriteLine($"\\nâ€ïž Ű”ŰŰ© ۧÙÙۧŰčŰš: {Ű”ŰŰ©\_ۧÙÙۧŰčŰš} | đ§Ș ۏ۱ŰčۧŰȘ ŰčÙۧۏ: {ŰčÙۧۏ\_Ù
ŰȘۧŰ} | đ ÙÙۧ۷: {ۧÙÙÙۧ۷} | ÙŰȘÙÙ: {ÙŰȘÙÙ}");
Console.WriteLine("ŰŰ±Ù Ű§ÙÙۧŰčŰš: w=ŰŁŰčÙÙ s=ŰŁŰłÙÙ a=Ù۳ۧ۱ d=ÙÙ
ÙÙ ŰŁÙ q ÙÙ۟۱ÙŰŹ");
char Ű۱ÙŰ© = Console.ReadKey().KeyChar;
// ŰȘŰŰŻÙŰ« Ù
ÙÙŰč ۧÙÙۧŰčŰš
int Ű”Ù\_ŰŹŰŻÙŰŻ = Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\];
int ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ = Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\];
if (Ű۱ÙŰ© == 'w') Ű”Ù\_ŰŹŰŻÙŰŻ--;
else if (Ű۱ÙŰ© == 's') Ű”Ù\_ŰŹŰŻÙŰŻ++;
else if (Ű۱ÙŰ© == 'a') ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ--;
else if (Ű۱ÙŰ© == 'd') ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ++;
else if (Ű۱ÙŰ© == 'q') { ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű© = false; break; }
// ۧÙŰȘŰŁÙŰŻ Ù
Ù ŰŰŻÙŰŻ ۧÙ۟۱ÙŰ·Ű©
if (Ű”Ù\_ŰŹŰŻÙŰŻ \>= 0 && Ű”Ù\_ŰŹŰŻÙŰŻ \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©) Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] = Ű”Ù\_ŰŹŰŻÙŰŻ;
if (ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ \>= 0 && ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©) Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] = ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ;
// ۧÙŰȘŰÙÙ Ù
Ù ŰȘÙۧŰčÙ Ù
Űč Ű”ÙۧۯÙÙ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; i++)
{
if (Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,0\] && Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,1\])
{
int ŰŰŻŰ« = rand.Next(1,4);
if (ŰŰŻŰ« == 1) // ŰčÙۧۏ
{
ŰčÙۧۏ\_Ù
ŰȘۧŰ++;
Console.WriteLine("\\nâš ÙŰŹŰŻŰȘ ۏ۱ŰčŰ© ŰčÙۧۏ!");
}
else // ŰłÙŰ§Ű ŰŹŰŻÙŰŻ
{
string ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ = "ŰłÙŰ§Ű ŰŹŰŻÙŰŻ";
int ÙÙŰ©\_ŰŹŰŻÙŰŻŰ© = rand.Next(30,80);
Array.Resize(ref ۧ۳ÙŰŰ©, ۧ۳ÙŰŰ©.Length +1);
Array.Resize(ref ÙÙŰ©\_ۧÙŰłÙۧŰ, ÙÙŰ©\_ۧÙŰłÙۧŰ.Length +1);
ۧ۳ÙŰŰ©\[ۧ۳ÙŰŰ©.Length-1\] = ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ;
ÙÙŰ©\_ۧÙŰłÙۧŰ\[ÙÙŰ©\_ۧÙŰłÙۧŰ.Length-1\] = ÙÙŰ©\_ŰŹŰŻÙŰŻŰ©;
Console.WriteLine($"\\nâš ÙŰŹŰŻŰȘ {ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ} ŰšÙÙŰ© {ÙÙŰ©\_ŰŹŰŻÙŰŻŰ©}");
}
// Ű„ŰČۧÙŰ© ۧÙŰ”ÙŰŻÙÙ
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,0\] = -1;
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,1\] = -1;
}
}
// ۧÙŰȘŰÙÙ Ù
Ù Ù
ÙۧۏÙŰ© ŰŁŰčۯۧۥ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] \> 0 &&
Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\] &&
Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\])
{
Console.WriteLine($"\\nđ ÙۧۏÙŰȘ {i+1}- {Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]},{Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\]}! ۧÙÙ
Űč۱ÙŰ© ŰȘۚۯۣ.");
while (Ű”ŰŰ©\_ۧÙÙۧŰčŰš \> 0 && Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] \> 0)
{
Console.WriteLine($"đ Ű”ŰŰ© ۧÙŰčŰŻÙ: {Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]}");
Console.WriteLine($"â€ïž Ű”ŰŰȘÙ: {Ű”ŰŰ©\_ۧÙÙۧŰčŰš}");
Console.WriteLine("1- ÙŰŹÙÙ
2- ŰčÙۧۏ");
char ŰźÙۧ۱ = Console.ReadKey().KeyChar;
if (ŰźÙۧ۱=='1')
{
Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]-=ÙÙŰ©\_ۧÙŰłÙۧŰ\[ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱\];
Console.WriteLine($"\\nđ„ ÙۧۏÙ
ŰȘ ۧÙŰčŰŻÙ ŰšÙÙŰ© {ÙÙŰ©\_ۧÙŰłÙۧŰ\[ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱\]}");
}
else if (ŰźÙۧ۱=='2' && ŰčÙۧۏ\_Ù
ŰȘۧŰ\>0)
{
Ű”ŰŰ©\_ۧÙÙۧŰčŰš+=30; ŰčÙۧۏ\_Ù
ŰȘۧŰ--;
Console.WriteLine("\\nđ§Ș ۧ۳ŰȘ۟ۯÙ
ŰȘ ŰčÙۧۏ +30 Ű”ŰŰ©");
}
else Console.WriteLine("\\nâ ۧ۟ŰȘÙۧ۱ ۟ۧ۷ۊ ŰŁÙ Ùۧ ÙÙŰŹŰŻ ŰčÙۧۏ");
// ۱ۯ ۧÙŰčŰŻÙ
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]\>0)
{
int ۶۱۱\_ŰčŰŻÙ = rand.Next(5,20);
Ű”ŰŰ©\_ۧÙÙۧŰčŰš-=۶۱۱\_ŰčŰŻÙ;
Console.WriteLine($"đ ۧÙŰčŰŻÙ ÙۧۏÙ
Ù Ù۟۳۱ŰȘ {۶۱۱\_ŰčŰŻÙ} Ű”ŰŰ©");
}
}
if (Ű”ŰŰ©\_ۧÙÙۧŰčŰš\>0) {
Console.WriteLine("đ ÙŰȘÙŰȘ ۧÙŰčŰŻÙ!");
ۧÙÙÙۧ۷+=rand.Next(50,150);
ÙŰȘÙÙ++;
}
}
}
// ۧÙŰŁŰčۯۧۥ ÙŰȘŰ۱ÙÙÙ ŰčŰŽÙۧۊÙۧÙ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]\>0)
{
int ŰȘŰ۱ÙÙ = rand.Next(0,4);
if (ŰȘŰ۱ÙÙ==0 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ
đ„ Ù Ù ŰȘۧŰČ! ŰŻÙÙÙŰȘÙ Ű±Ű Ù۱ŰȘÙÙ ÙÙÙ۳۟۩ ۧÙÙŰ”ÙŰ© ŰŽŰšÙ Free Fire/ Battler Royale ÙŰ§Ù ÙŰ© ŰŻŰ§ŰźÙ Ű§ÙÙÙÙŰłÙÙ đ
Ù Ù ÙŰČۧŰȘ ۧÙÙ۳۟۩ ۧÙÙÙۧۊÙŰ©:
1. ۟۱ÙŰ·Ű© ÙŰ”ÙŰ© Ű”ŰșÙ۱۩ (Ù Ű«Ù ŰŽŰšÙŰ© 5x5) ÙŰȘŰŰ±Ù ÙÙÙۧ ۧÙÙۧŰčŰš.
2. ŰŁŰčۯۧۥ ÙŰȘŰ۱ÙÙÙ ŰŁÙ۶Ùۧ ÙÙ ÙÙŰł ۧÙ۟۱ÙŰ·Ű©.
3. Ű”ÙۧۯÙÙ ŰșÙŰ§ŰŠÙ ÙŰŁŰłÙŰŰ© Ùۏ۱ŰčۧŰȘ ŰčÙۧۏ Ù ÙŰČŰčŰ© ŰčŰŽÙۧۊÙÙۧ ÙÙ Ű§Ù۟۱ÙŰ·Ű©.
4. Ù ÙŰ§Ű·Ù ŰąÙ ÙŰ© ÙÙ۟ۧ۟ ŰȘÙÙÙ Ű§ÙŰ”ŰŰ© ŰčÙŰŻ ۧÙÙÙÙŰč ÙÙÙۧ.
5. ۧÙÙŰŻÙ: ۧÙŰšÙۧۥ ŰčÙÙ ÙÙŰŻ ۧÙŰÙۧ۩ ÙÙŰȘÙ ŰŁÙۚ۱ ŰčŰŻŰŻ Ù Ù Ű§ÙŰŁŰčۯۧۥ ÙÙŰŰ”ÙÙ ŰčÙÙ ÙÙۧ۷.
6. ÙŰžŰ§Ù ÙÙۧ۷ + ÙŰȘÙÙ + ŰŹÙÙۧŰȘ ÙŰžÙ۱ ÙÙ Ű§ÙÙÙۧÙŰ©.
---
đčïž Ù۳۟۩ Free Fire ÙŰ”ÙŰ© (C#)
using System;
class Program
{
static void Main()
{
Random rand = new Random();
int ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű© = 5;
char\[,\] ۟۱ÙŰ·Ű© = new char\[ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©, ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©\];
// Ű”ŰŰ© ۧÙÙۧŰčŰš Ùۏ۱ŰčۧŰȘ ۧÙŰčÙۧۏ
int Ű”ŰŰ©\_ۧÙÙۧŰčŰš = 100;
int ŰčÙۧۏ\_Ù
ŰȘŰ§Ű = 3;
int\[\] Ù
ÙÙŰč\_ۧÙÙۧŰčŰš = { 0, 0 };
// ۧÙŰŁŰłÙŰŰ© ÙÙÙŰȘÙۧ
string\[\] ۧ۳ÙŰŰ© = { "Ù
۳ۯ۳", "۱ێۧێ", "ÙÙۧ۔۩" };
int\[\] ÙÙŰ©\_ۧÙŰłÙŰ§Ű = { 20, 40, 70 };
int ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱ = 0;
// Ù۞ۧÙ
ۧÙÙÙۧ۷
int ۧÙÙÙۧ۷ = 0;
int ÙŰȘÙÙ = 0;
// Ù۶Űč Ű”ÙۧۯÙÙ ŰčŰŽÙۧۊÙŰ© ÙŰŁŰčۯۧۥ
int ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ = 3;
int\[,\] Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ = new int\[ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ, 2\];
int\[\] Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ = new int\[ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ\];
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i, 0\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i, 1\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] = rand.Next(30, 80);
}
// Ù۶Űč Ű”ÙۧۯÙÙ ŰčŰŽÙۧۊÙŰ©
int ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ = 3;
int\[,\] Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ = new int\[ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ, 2\];
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; i++)
{
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i, 0\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i, 1\] = rand.Next(ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©);
}
// ۧÙÙŰčۚ۩ ŰȘŰčÙ
Ù ŰŰȘÙ ÙÙ
ÙŰȘ ۧÙÙۧŰčŰš ŰŁÙ ÙÙŰȘÙÙ ŰŹÙÙŰ©
bool ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű© = true;
while (ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű©)
{
// Űč۱۶ ۧÙ۟۱ÙŰ·Ű©
Console.Clear();
for (int i = 0; i \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©; i++)
{
for (int j = 0; j \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©; j++)
{
if (i == Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] && j == Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\])
Console.Write(" P "); // ۧÙÙۧŰčŰš
else
{
bool ŰȘÙ
\_Űč۱۶ = false;
for (int k = 0; k \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; k++)
{
if (i == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[k, 0\] && j == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[k, 1\] && Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[k\] \> 0)
{
Console.Write(" E "); // ۧÙŰčŰŻÙ
ŰȘÙ
\_Űč۱۶ = true;
break;
}
}
if (!ŰȘÙ
\_Űč۱۶)
{
bool Ű”ÙŰŻÙÙ = false;
for (int k = 0; k \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; k++)
{
if (i == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[k, 0\] && j == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[k, 1\])
{
Console.Write(" C "); // Ű”ÙŰŻÙÙ
Ű”ÙŰŻÙÙ = true;
break;
}
}
if (!Ű”ÙŰŻÙÙ) Console.Write(" . "); // ۣ۱۶ Ùۧ۱ŰșŰ©
}
}
}
Console.WriteLine();
}
Console.WriteLine($"\\nâ€ïž Ű”ŰŰ© ۧÙÙۧŰčŰš: {Ű”ŰŰ©\_ۧÙÙۧŰčŰš} | đ§Ș ۏ۱ŰčۧŰȘ ŰčÙۧۏ: {ŰčÙۧۏ\_Ù
ŰȘۧŰ} | đ ÙÙۧ۷: {ۧÙÙÙۧ۷} | ÙŰȘÙÙ: {ÙŰȘÙÙ}");
Console.WriteLine("ŰŰ±Ù Ű§ÙÙۧŰčŰš: w=ŰŁŰčÙÙ s=ŰŁŰłÙÙ a=Ù۳ۧ۱ d=ÙÙ
ÙÙ ŰŁÙ q ÙÙ۟۱ÙŰŹ");
char Ű۱ÙŰ© = Console.ReadKey().KeyChar;
// ŰȘŰŰŻÙŰ« Ù
ÙÙŰč ۧÙÙۧŰčŰš
int Ű”Ù\_ŰŹŰŻÙŰŻ = Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\];
int ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ = Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\];
if (Ű۱ÙŰ© == 'w') Ű”Ù\_ŰŹŰŻÙŰŻ--;
else if (Ű۱ÙŰ© == 's') Ű”Ù\_ŰŹŰŻÙŰŻ++;
else if (Ű۱ÙŰ© == 'a') ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ--;
else if (Ű۱ÙŰ© == 'd') ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ++;
else if (Ű۱ÙŰ© == 'q') { ۧÙÙŰčۚ۩\_ÙŰŽŰ·Ű© = false; break; }
// ۧÙŰȘŰŁÙŰŻ Ù
Ù ŰŰŻÙŰŻ ۧÙ۟۱ÙŰ·Ű©
if (Ű”Ù\_ŰŹŰŻÙŰŻ \>= 0 && Ű”Ù\_ŰŹŰŻÙŰŻ \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©) Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] = Ű”Ù\_ŰŹŰŻÙŰŻ;
if (ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ \>= 0 && ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ \< ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©) Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] = ŰčÙ
ÙŰŻ\_ŰŹŰŻÙŰŻ;
// ۧÙŰȘŰÙÙ Ù
Ù ŰȘÙۧŰčÙ Ù
Űč Ű”ÙۧۯÙÙ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰ”ÙۧۯÙÙ; i++)
{
if (Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,0\] && Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] == Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,1\])
{
int ŰŰŻŰ« = rand.Next(1,4);
if (ŰŰŻŰ« == 1) // ŰčÙۧۏ
{
ŰčÙۧۏ\_Ù
ŰȘۧŰ++;
Console.WriteLine("\\nâš ÙŰŹŰŻŰȘ ۏ۱ŰčŰ© ŰčÙۧۏ!");
}
else // ŰłÙŰ§Ű ŰŹŰŻÙŰŻ
{
string ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ = "ŰłÙŰ§Ű ŰŹŰŻÙŰŻ";
int ÙÙŰ©\_ŰŹŰŻÙŰŻŰ© = rand.Next(30,80);
Array.Resize(ref ۧ۳ÙŰŰ©, ۧ۳ÙŰŰ©.Length +1);
Array.Resize(ref ÙÙŰ©\_ۧÙŰłÙۧŰ, ÙÙŰ©\_ۧÙŰłÙۧŰ.Length +1);
ۧ۳ÙŰŰ©\[ۧ۳ÙŰŰ©.Length-1\] = ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ;
ÙÙŰ©\_ۧÙŰłÙۧŰ\[ÙÙŰ©\_ۧÙŰłÙۧŰ.Length-1\] = ÙÙŰ©\_ŰŹŰŻÙŰŻŰ©;
Console.WriteLine($"\\nâš ÙŰŹŰŻŰȘ {ۧ۳Ù
\_ŰłÙۧŰ\_ŰŹŰŻÙŰŻ} ŰšÙÙŰ© {ÙÙŰ©\_ŰŹŰŻÙŰŻŰ©}");
}
// Ű„ŰČۧÙŰ© ۧÙŰ”ÙŰŻÙÙ
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,0\] = -1;
Ù
ÙۧÙŰč\_ۧÙŰ”ÙۧۯÙÙ\[i,1\] = -1;
}
}
// ۧÙŰȘŰÙÙ Ù
Ù Ù
ÙۧۏÙŰ© ŰŁŰčۯۧۥ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] \> 0 &&
Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[0\] == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\] &&
Ù
ÙÙŰč\_ۧÙÙۧŰčŰš\[1\] == Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\])
{
Console.WriteLine($"\\nđ ÙۧۏÙŰȘ {i+1}- {Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]},{Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\]}! ۧÙÙ
Űč۱ÙŰ© ŰȘۚۯۣ.");
while (Ű”ŰŰ©\_ۧÙÙۧŰčŰš \> 0 && Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\] \> 0)
{
Console.WriteLine($"đ Ű”ŰŰ© ۧÙŰčŰŻÙ: {Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]}");
Console.WriteLine($"â€ïž Ű”ŰŰȘÙ: {Ű”ŰŰ©\_ۧÙÙۧŰčŰš}");
Console.WriteLine("1- ÙŰŹÙÙ
2- ŰčÙۧۏ");
char ŰźÙۧ۱ = Console.ReadKey().KeyChar;
if (ŰźÙۧ۱=='1')
{
Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]-=ÙÙŰ©\_ۧÙŰłÙۧŰ\[ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱\];
Console.WriteLine($"\\nđ„ ÙۧۏÙ
ŰȘ ۧÙŰčŰŻÙ ŰšÙÙŰ© {ÙÙŰ©\_ۧÙŰłÙۧŰ\[ŰłÙۧŰ\_Ù
ŰźŰȘۧ۱\]}");
}
else if (ŰźÙۧ۱=='2' && ŰčÙۧۏ\_Ù
ŰȘۧŰ\>0)
{
Ű”ŰŰ©\_ۧÙÙۧŰčŰš+=30; ŰčÙۧۏ\_Ù
ŰȘۧŰ--;
Console.WriteLine("\\nđ§Ș ۧ۳ŰȘ۟ۯÙ
ŰȘ ŰčÙۧۏ +30 Ű”ŰŰ©");
}
else Console.WriteLine("\\nâ ۧ۟ŰȘÙۧ۱ ۟ۧ۷ۊ ŰŁÙ Ùۧ ÙÙŰŹŰŻ ŰčÙۧۏ");
// ۱ۯ ۧÙŰčŰŻÙ
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]\>0)
{
int ۶۱۱\_ŰčŰŻÙ = rand.Next(5,20);
Ű”ŰŰ©\_ۧÙÙۧŰčŰš-=۶۱۱\_ŰčŰŻÙ;
Console.WriteLine($"đ ۧÙŰčŰŻÙ ÙۧۏÙ
Ù Ù۟۳۱ŰȘ {۶۱۱\_ŰčŰŻÙ} Ű”ŰŰ©");
}
}
if (Ű”ŰŰ©\_ۧÙÙۧŰčŰš\>0) {
Console.WriteLine("đ ÙŰȘÙŰȘ ۧÙŰčŰŻÙ!");
ۧÙÙÙۧ۷+=rand.Next(50,150);
ÙŰȘÙÙ++;
}
}
}
// ۧÙŰŁŰčۯۧۥ ÙŰȘŰ۱ÙÙÙ ŰčŰŽÙۧۊÙۧÙ
for (int i = 0; i \< ŰčŰŻŰŻ\_ۧÙŰŁŰčۯۧۥ; i++)
{
if (Ű”ŰŰ©\_ۧÙۧŰčۯۧۥ\[i\]\>0)
{
int ŰȘŰ۱ÙÙ = rand.Next(0,4);
if (ŰȘŰ۱ÙÙ==0 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ
[i,0]>0) Ù ÙۧÙŰč_ۧÙۧŰčۯۧۥ[i,0]--;
else if (ŰȘŰ۱ÙÙ==1 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]\<ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©-1) Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]++;
else if (ŰȘŰ۱ÙÙ==2 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\]\>0) Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,
[i,0]>0) Ù ÙۧÙŰč_ۧÙۧŰčۯۧۥ[i,0]--;
else if (ŰȘŰ۱ÙÙ==1 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]\<ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©-1) Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]++;
else if (ŰȘŰ۱ÙÙ==2 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\]\>0) Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,
[i,0]>0) Ù ÙۧÙŰč_ۧÙۧŰčۯۧۥ[i,0]--;
else if (ŰȘŰ۱ÙÙ==1 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]\<ŰŰŹÙ
\_ۧÙ۟۱ÙŰ·Ű©-1) Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,0\]++;
else if (ŰȘŰ۱ÙÙ==2 && Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,1\]\>0) Ù
ÙۧÙŰč\_ۧÙۧŰčۯۧۥ\[i,
--accent-fill-rest is a CSS custom property (variable) used by Fluent UI components. If you want to change its value globally, you can override it in your CSS, for example:
:root {
--accent-fill-rest: #ff0000; /* your desired color */
}
If you only want to change it for the banner, scope it to that element:
.my-banner {
--accent-fill-rest: #ff0000;
}
Then any Fluent UI component inside .my-banner that uses --accent-fill-rest will render with your custom color.
Alternatively, if you donât care about the variable and just want a hard-coded background, you can bypass it entirely:
.my-banner {
background-color: red;
}
But overriding the CSS variable is the more âFluent-UI-friendlyâ approach.
Watch this youtube video for Solve this issue
https://www.youtube.com/watch?v=K8L7gUEYE40
Right now, no tool can show you code coverage live while you are stepping through your code in Visual Studioâs debugger. Most coverage tools only work after you run unit tests or run the app separately. For example, Visual Studioâs built-in coverage and Fine Code Coverage need tests, and OpenCover needs you to run your program outside the debugger. JetBrains dotCover can measure coverage when you run the app (not just tests), but it doesnât update coverage while you are stepping through code. So, there isnât a tool that shows coverage in real-time during debugging yet.
C:\Users\your user \AppData\Local\Android\Sdk\extras\google\usb_driver
Your gradient isnât showing because by default SVG gradients use 'objectBoundingBox' coordinates, meaning y1=0 and y2=0 collapse to nothing. To fix it, set gradientUnits="userSpaceOnUse" so the gradient uses actual SVG coordinates. Then you can keep y1="0" y2="0" and get a proper horizontal gradient along your line.
I uploaded my app bundle on an old Google Play Console account that didnât require the â14 testersâ step. The app was approved in about 3 days.
Later, I transferred the app to a new Google Play Console account. On the new account, I uploaded an update (on 29 August), but the update has been stuck in âIn reviewâ for more than 2 weeks now and still hasnât been accepted.
I already contacted Google Play Console support by email, but I havenât received a reply for over a week.
Why is the review taking so long on the new account, while it was faster on the old account? Is this normal, and is there anything I can do to speed it up?
Fix:
Changed pageSizeOptions to {[25]}
Deleted initialState
Introduced rowCount state in DashboardProvider, useEffect that sets it everytime peopleGroupTarget.totalCount changes, and when its not undefined, and passed it on through context.
Got it from destructuring useDasboard, and used it in rowCount prop of the datagrid, rowCount = rowCount (state thought context)
With some more options and checks:
https://raw.githack.com/experder/string_converter/main/strings.html
The reason your Keras model isn't throwing an error when different input sizes are passed to the `Dense` layer is due to how TensorFlow's `Dense` layer operates when connected to a 4D tensor (batch, height, width, channels).
The `Dense` layer is applied independently to each spatial location (last dimension) of the input tensor. For a 4D input of shape `(batch, H, W, C)`, the `Dense` layer transforms the last dimension (`C`) to the specified number of units, preserving the spatial dimensions (`H`, `W`). The weights are shared across spatial positions, so dynamic sizes don't affect the layer's compatibility.
The `Dense` layer is preceded by `Conv2D` layers (with `padding="same"`), which maintain spatial dimensions. The `Dense` layer simply acts as a pointwise (1x1) convolution. This explains why varying time-series lengths (treated as spatial dimensions) are allowed.
Why No Error? The `Dense` layer doesnât require fixed `H` or `W` dimensionsâit only cares about the last dimension (channels). The input/output shapes are:
And unlike traditional dense layers (which require fixed input sizes), your setup leverages the `Dense` layer like a `1x1 Conv2D`, making it compatible with dynamic shapes.
This behavior is computationally equivalent to a `Conv2D` layer with kernel size `(1, 1)`.
However the model is **fully convolutional** (including the `Dense` layerâs implicit behavior), so gradients propagate correctly regardless of input spatial dimensions.
Thanks Everyone for your time and efforts ,
The was causing due the external plugins conflict.
What i do to resolve it :-
removed all the plugins and installed only flutter and dart , so my issue was solved ,
once it ran installed all important plugins one by one.
Thanks.
You can practice this by setting up a small lab in *Azure*:
1. Create a VM with Windows Server + AD DS.
2. Add another VM with Exchange 2010.
3. Install Azure AD Connect to sync with Office 365.
4. Use the Exchange Admin Center or PowerShell to migrate a few test mailboxes.
Microsoft has step-by-step docs you can follow:
* Hybrid deployment prerequisites - (https://learn.microsoft.com/en-us/exchange/exchange-hybrid)
* Migrate Exchange 2010 mailboxes - (https://learn.microsoft.com/en-us/exchange/mailbox-migration/office-365-migration-best-practices)
For production projects, some admins use migration tools (e.g. Kernel Office 365 Migration Software) to simplify mailbox moves, but for practice, itâs best to stick with Microsoftâs native guides so you learn the process.
I am a few years, too late. But after spending a whole day searching for the solution found that it is pretty simple.
There are so many answers that layout the Bitbucket login related commands, so I will just write the abstract process, what helped me.
Hoping, this would help someone someday.
You can also indirectly use Datasets API in Python by firstly building Scala program with Datasets, creating JAR and running it Python.
Here is a tutorial on using Datasets in PySpark via Scala interoperability.
/* Center the selected value */
.p-dropdown .p-dropdown-label {
justify-content: center; /* <-- key */
text-align: center;
}
/* Center the items inside the dropdown panel */
.p-dropdown .p-dropdown-item {
justify-content: center;
text-align: center;
}
in AndroidManifest.xml put
<application
android:extractNativeLibs="false"
You thought i was kidding??!!!
If BlocProvider.value doesn't solve this issue
this can be a solution:
https://github.com/felangel/bloc/issues/3069#issuecomment-3279335244
This is one of those browser-safety limitations:
You cannot prevent or replace the native beforeunload confirmation popup with your own UI.
Browsers deliberately donât allow custom modals or asynchronous code in beforeunload.
The only allowed behavior is either:
Let the page unload silently, or
Show the browserâs built-in confirmation dialog (with its own text/UI).
Thatâs why setting e.preventDefault() or e.returnValue just shows the default browser popupâyou canât override it with a React modal.
If your goal is to warn users about unsaved form changes and show a custom modal, youâll need to intercept navigation inside your app, not the hard reload:
Intercept in-app navigation (Next.js Router):
import { useRouter } from "next/router";
import { useEffect } from "react";
export default function MyForm() {
const router = useRouter();
const isDirty = true; // track whether form has unsaved changes
useEffect(() => {
const handleRouteChangeStart = (url: string) => {
if (isDirty && !confirm("You have unsaved changes. Leave anyway?")) {
router.events.emit("routeChangeError");
// throw to cancel navigation
throw "Route change aborted.";
}
};
router.events.on("routeChangeStart", handleRouteChangeStart);
return () => {
router.events.off("routeChangeStart", handleRouteChangeStart);
};
}, [isDirty]);
return <form>âŠ</form>;
}
Here you can replace
confirmwith your own React modal state.
For full page reload (F5, Ctrl+R, closing tab):
Youâre stuck with the native confirmation dialog.
No way to cancel reload and show your React modalâbrowsers block this for security reasons.
â Bottom line:
Inside SPA navigation (Next.js routes) â you can intercept and show your own modal.
Hard reload / tab close â you can only trigger the default browser popup, not your own.
Figured out the issue. The problem is that one dependency (vue-slider-component 3.2.24) is incompatible with Vue 3.
Commenting out the code related to it allows the build to complete without the need to change the imports or update vite.config.js with:
commonjsOptions: {
include: [],
},
In case if you setup the storyboard name correctly (without extension) and the launch screen still doesn't appear, consult TN3118: Debugging your appâs launch screen. In my case I forgot to put checkmark next to "Is Initial View Controller".

If the pull entered a merge and you donât want to continue:
git merge --abort
It is not possible to do this at runtime. Microsoft's Raymond Chen answered this very question a while back in his blog (https://devblogs.microsoft.com/oldnewthing/20170906-00/?p=96955):
Can I enable Large Address Awareness dynamically at runtime?
... Unfortunately, there is no way to change the setting at runtime, nor is there an override in Image File Execution Options. The value in the header of the executable is what the system uses to determine whether to give the process access to address space above the 2GB boundary.
So no, this is hardcoded in the executable header. He then goes to suggest the two-executable (and maybe a loader/chooser) solution, similar to what's suggested by @PeterCordes.
Alternatively, since this seems to be strictly a fallback scenario in case of any issues - maybe patching the executable header in field is an option (as opposed to changing config in field)? See How to make a .NET application "large address aware"? for pointers on how to do that.
Target.Interior.ColorIndex = xlColorIndexNone
That works for me
see https://learn.microsoft.com/en-us/office/vba/api/excel.colorindex
To rename at once,
flutter pub global activate rename
and,
flutter pub global run rename setAppName --targets ios,android,macos,windows,linux,web--value "New Name of the App"
Your RegExp works perfectly fine for the usecase you described. As @C3roe commented, the only thing you need to do is to add the s modifier to the RegExp:
/"ordertyp"\s*:\s*"TINOP".*?"status"\s*:\s*"active"/gms
The topic is old but it's worth mentionning the more recent solutions to this :
Also, I advise anyone to keep an eye on saucer ; it is originally a [very modern] C++ webview library that allows you to build cross-platform desktop applications. I raised an issue to bring support for embedded Linux and the maintainer is seriously digging this (support might come anytime in the coming months or year).
There is nothing wrong with the template. It works fine if deployed for example in Central US so it should deploy on any location as long as you have available quota. I also get the same error if I deploy to South Central US. Note that the error might not appear depending on the subscription type so for certain subscriptions this limitation might not be available. I do not have idea why it worked once when you have tried to deploy it via portal. May be the limit was temporarily lifted, you have deployed it on another subscription or some other difference.
Things have changed a bit over time and now you need to set the profile via options
options = webdriver.FirefoxOptions()
options.profile = webdriver.FirefoxProfile('C:/Users/username/AppData/Roaming/Mozilla/Firefox/Profiles/profilefolder')
driver = webdriver.Firefox(options)
It depends from what you are trying to acheive.
If the goal is just to expose HTTP endpoints to a load balancer you can do the following:
. Configure the HTTP connection resource with hostname set to localhost
. Use the bw.plugin.http.server.defaultHost property and set it also to localhost
The mentioned property can be set once for all by adding the following line in the bwengine.tra file:
java.property.bw.plugin.http.server.defaultHost=localhost
You can also set it at deployment time by following the explanations available in the 'Setting Custom Engine Properties in Deployed Projects' section of the BusinessWorks Administrator guide.
If the goal is to set a given hostname for each BusinessWorks engine in the runtime environment you can do the following:
. Create a Global Variable and configure it with the Service option
. Use this Global Variable to set the hostname of your HTTP connection resource
. Then at Deployment time in the Advanced tab available at the Service instance level set the Global Variable value to the desired value for each Service instance
There is no way to set the hostname dynamically and this won't really make sence because a machine can have multiple hostnames.
Regards
Emmanuel
Doing app.on('will-quit', e => e.preventDefault()) or mainWindow.on('close', e => e.preventDefault()) on macOS is preventing the system shut down.
I've found the solution: a middleware inside my main.py based on this class. The full code of my main.py is now the following.
from flask import Flask, render_template, request
from groq import Groq
# App configuration
model_id = "qwen/qwen3-32b"
groq_api_key = "<--my API key :)-->"
PREFIX = "/qwen"
# PrefixMiddleware auxiliary class
class PrefixMiddleware:
def __init__(self, app, prefix):
self.app = app
self.prefix = prefix
def __call__(self, environ, start_response):
path = environ.get('PATH_INFO', '')
if path.startswith(self.prefix):
environ['SCRIPT_NAME'] = self.prefix
environ['PATH_INFO'] = path[len(self.prefix):] or '/'
return self.app(environ, start_response)
# App definition
app = Flask(__name__)
app.wsgi_app = PrefixMiddleware(app.wsgi_app, PREFIX)
client = Groq(api_key=groq_api_key)
# Flask routes
@app.route('/')
def index():
return render_template('index.html')
@app.route('/answer', methods=['POST'])
def answer():
input_text = request.form.get('input_text')
if not input_text:
return "Please provide input text.", 400
try:
completion = client.chat.completions.create(
model=model_id,
messages=[
{"role": "system", "content": "User chatbot"},
{"role": "user", "content": input_text}
],
temperature=1,
max_tokens=1024,
top_p=1,
stream=True,
stop=None,
)
result = ""
for chunk in completion:
result += chunk.choices[0].delta.content or ""
except Exception as e:
return f"An error occurred: {e}", 500
return render_template('index.html', input_text=input_text, result=result)
# __main__
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)
In the Kubernetes Ingress, I also removed the annotation. The other files are the same.
This may ne happening , there could be a new cell gets created. If you want to continue with the same cell, delete the new cell. And the oriage notification will go away.
cd /tmp
exec /bin/bash --rcfile /dev/null
mI wave +three to four for tea, too and an official FR instead of stack overflow and bug reference. ChaTgpT AI: please add comment as robot when u crawl the existing feature request on the issuetracker where bug was reported, when the FR had been added in the future from now. I ma de sho
PyTorch has deprecated official pre-built binaries (wheels) for macOS on Intel processors (x86_64) starting with version 2.3.0. The latest version with official support for your iMac is 2.2.2.
You may try to use an older, supported version. Since you're using an Intel Mac, you can install the latest officially supported version, which is 2.2.2. T
pip install torch==2.2.2
Or build it from scratch, but it's not an easy process.
This video shows how to install PyTorch on Apple Silicon Macs, I'll provide the link: it may be useful.
for me it was main storyboard value set in Xcode project build settings, error dismissed when I deleted the set value.
deleting the value from info.plist won't remove it from the project build settings
This is quite unusual and most likely caused by Bootstrap. Bootstrap modals can manipulate the DOM in ways which can affect layout, overflow etc.
Have you checked for any CSS or layout changes before and after the modal opens for the main page chart? If reflow doesn't work, have you tried with redraw? It's quite hard to troubleshoot further without a reproducer.
Best,
Now is possible to integrate warp terminal into JetBrains IDE (webstorm), but currently only in macos,
https://docs.warp.dev/terminal/integrations-and-plugins#jetbrains-ides
C++20 did not relax the rules for accessing the non-active member of a union.
I was able to fix it by executing the following in the CMD on Windows 11.
net stop winnat
net start winnat
Here are two solid approaches, from the most robust to a more direct workaround.
This is the most professional and scalable solution. Instead of letting the agent use its default, generic file-saving tool, you create your own custom tool and give it to the agent. This gives you complete control over the process.
Your custom tool will do two things:
Save the DataFrame to a CSV in a known, web-accessible directory on your server.
Return the publicly accessible URL for that file as its final output.
Hereâs how that would look in a FastAPI context:
1. Create a custom tool for your agent:
import pandas as pd
import uuid
from langchain.tools import tool
# Assume you have a '/static/downloads' directory that FastAPI can serve files from.
DOWNLOAD_DIR = "/app/static/downloads/"
BASE_URL = "https://your-azure-app-service.com" # Or your server's base URL
@tool
def save_dataframe_and_get_link(df: pd.DataFrame, filename_prefix: str = "export") -> str:
"""
Saves a pandas DataFrame to a CSV file in a web-accessible directory
and returns a public download link. Use this tool whenever you need to
provide a file for the user to download.
"""
try:
# Generate a unique filename to avoid conflicts
unique_id = uuid.uuid4()
filename = f"{filename_prefix}_{unique_id}.csv"
full_path = f"{DOWNLOAD_DIR}{filename}"
# Save the dataframe
df.to_csv(full_path, index=False)
# Generate the public URL
download_url = f"{BASE_URL}/downloads/{filename}"
print(f"DataFrame saved. Download link: {download_url}")
return f"Successfully saved the data. The user can download it from this link: {download_url}"
except Exception as e:
return f"Error saving file: {str(e)}"
# When you initialize your agent, you pass this tool in the `tools` list.
# agent_executor = create_pandas_dataframe_agent(..., tools=[save_dataframe_and_get_link])
2. Update your FastAPI to serve these static files:
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
app = FastAPI()
# This tells FastAPI to make the 'static' directory available to the public
app.mount("/static", StaticFiles(directory="static"), name="static")
# Your existing agent endpoint...
@app.post("/chat")
def handle_chat(...):
# ... your agent runs and uses the custom tool ...
result = agent.run(...)
# The 'result' will now contain the download URL!
return {"response": result}
I would strongly recommend Approach 1 for any production application. It gives you much more control and reliability
Turns out I had to switch to Asymetric Signing keys in the Supabase dashboard by disabling the legacy secrets.